You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Maria Jose Esteve <mj...@iest.com> on 2023/04/12 15:08:31 UTC

Add support for "CSS Container Queries" in royale-compiler

Hi, I'm making a wrapper for FullCalendar [1], in Royale, and the CSS was giving me problems with the font sizes when resizing the containers (I imagine they will have it all fixed in the "Pro" version).
In the end, I think I found the solution based on CSS Container Queries [2] (basically they are new 'units of measure', cqw/cqh, defined by the "width" or "height" of the container respectively).
I think its support could be very useful and I thought about adding it to royale-compiler, how do you see it?

[1] https://github.com/fullcalendar
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries

Hiedra


RE: Add support for "CSS Container Queries" in royale-compiler

Posted by Maria Jose Esteve <mj...@iest.com>.
Hi, I'm still not expressing myself correctly, sorry.
What I propose "is not so pretentious"... it's just the beginning.
Regarding FullCalendar, for now, I don't think I'm able to implement an asjs library because it's really a small "@externs". My goal was to start with Andrew Frost's example [1] and extend it but the library has changed since he implemented the example and I have not been able to replicate it with the new version.

What I did want to include is the necessary support to be able to use the new "cqw" and "cqh" units, and properties such as "container-type". This is done in royale-compiler right?

I can wait if you need, no problem.

[1] https://github.com/ajwfrost/royale-playground/tree/master/CalendarProject

Hiedra

-----Mensaje original-----
De: Yishay Weiss <yi...@hotmail.com> 
Enviado el: domingo, 16 de abril de 2023 9:29
Para: dev@royale.apache.org
Asunto: Re: Add support for "CSS Container Queries" in royale-compiler

Hi Maria,

When you say wrapper, do you mean a library in as-js? And by "adding to compiler" do you mean adding type-defs? If so, I vote +1 for both, but can you please wait for 0.9.11 ? I am finally planning to release 0.9.10 this week, or the next (need to check if Josh figured out the issues which prevent binary reproducibility).

Thanks
________________________________
From: Maria Jose Esteve <mj...@iest.com>
Sent: Wednesday, April 12, 2023 6:08 PM
To: dev@royale.apache.org <de...@royale.apache.org>
Subject: Add support for "CSS Container Queries" in royale-compiler

Hi, I'm making a wrapper for FullCalendar [1], in Royale, and the CSS was giving me problems with the font sizes when resizing the containers (I imagine they will have it all fixed in the "Pro" version).
In the end, I think I found the solution based on CSS Container Queries [2] (basically they are new 'units of measure', cqw/cqh, defined by the "width" or "height" of the container respectively).
I think its support could be very useful and I thought about adding it to royale-compiler, how do you see it?

[1] https://github.com/fullcalendar
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries

Hiedra


Re: Add support for "CSS Container Queries" in royale-compiler

Posted by Yishay Weiss <yi...@hotmail.com>.
Hi Maria,

When you say wrapper, do you mean a library in as-js? And by "adding to compiler" do you mean adding type-defs? If so, I vote +1 for both, but can you please wait for 0.9.11 ? I am finally planning to release 0.9.10 this week, or the next (need to check if Josh figured out the issues which prevent binary reproducibility).

Thanks
________________________________
From: Maria Jose Esteve <mj...@iest.com>
Sent: Wednesday, April 12, 2023 6:08 PM
To: dev@royale.apache.org <de...@royale.apache.org>
Subject: Add support for "CSS Container Queries" in royale-compiler

Hi, I'm making a wrapper for FullCalendar [1], in Royale, and the CSS was giving me problems with the font sizes when resizing the containers (I imagine they will have it all fixed in the "Pro" version).
In the end, I think I found the solution based on CSS Container Queries [2] (basically they are new 'units of measure', cqw/cqh, defined by the "width" or "height" of the container respectively).
I think its support could be very useful and I thought about adding it to royale-compiler, how do you see it?

[1] https://github.com/fullcalendar
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries

Hiedra