Rips
(Phil Rips)
February 11, 2024, 4:23am
1
Hi, it seems the new code editor cannot handle the CSS value below, I assume it’s a problem with the slashes.
grid-area: 1 / 1 / 2 / 2;
Chrome output:
The workaround is to use the longer syntax for grid-area:
grid-row-start: 1;
grid-column-start: 1;
grid-row-end: 2;
grid-column-end: 2;
ghen
(ghen)
February 12, 2024, 3:16am
2
Great catch @Rips ! thank you for letting us know, I’ve passed this along to our dev to take a look.
1 Like
Rips
(Phil Rips)
February 13, 2024, 12:16am
3
I’ve realised it’s simply doing the maths:
1 / 1 / 2 / 2 = 0.25
This happens with the aspect-ratio property as well, but the calculated number still works in that case.
I think the editor needs to restrict maths to inside of the calc
property for CCS.
ghen
(ghen)
February 13, 2024, 3:18am
4
Thanks again @Rips ! I’ve provided your observation to our developer.
ghen
(ghen)
April 8, 2024, 9:41am
5
Hi @Rips sorry for not providing updates here but upon checking, the developers are still working working on this. If you want more information or just follow how things are doing here is the github link thank you!
1 Like
Rips
(Phil Rips)
April 8, 2024, 12:13pm
6
No problem, the work around for this issue is straight forward.