[csswg-drafts] [css-sizing-3][css-sizing-4] Move `fit-content` keyword to Level 3 and `fit-content()` function to Level 4 (#10601)

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

== [css-sizing-3][css-sizing-4] Move `fit-content` keyword to Level 3 and `fit-content()` function to Level 4 ==
Back in 2017, [it was resolved](https://github.com/w3c/csswg-drafts/issues/1912#issuecomment-341273524) to defer the `fit-content` keyword level 4 of the Sizing spec. together with the `stretch` keyword.

Though it looks like in the meantime all major browser engines implemented this keyword already. Interestingly, they _don't_ support the `stretch` keyword yet while the spec. refers to `fit-content` being equivalent to `fit-content(stretch)` (which is actually not allowed at the moment, because `fit-content()` currently [only takes a `<length-percentage>`](https://drafts.csswg.org/css-sizing-3/#funcdef-width-fit-content)).

At the same time, the `fit-content()` function is not supported by any browser so far. There's only an experimental implementation in Firefox.
So, `fit-content` doesn't seem to be dependent on `fit-content()`.

Therefore, I suggest to revert the resolution of #1912 and move the `fit-content` keyword back to level 3, and instead defer the `fit-content()` function to level 4.

Sebastian

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


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

Received on Friday, 19 July 2024 21:34:23 UTC