[csswg-drafts] [css-grid] Should calc(1fr) be invalid? (#6989)

LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid] Should calc(1fr) be invalid? ==
Testcase: https://codepen.io/leaverou/pen/dyZPoRz

Right now, all browsers seem to be treating *any* `fr` in `calc()` as invalid, which is unfortunate, since using `calc()` to calculate the ratio between grid columns would be quite useful.

Is this per spec, or is it just a misunderstanding of [this note](https://drafts.csswg.org/css-grid/#:~:text=so%20they%20cannot%20be%20represented%20in%20or%20combined%20with%20other%20unit%20types%20in%20calc()%20expressions.)?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6989 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 January 2022 13:59:40 UTC