-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-sizing-4] stretch
keyword for sizing properties
#1054
Comments
We're positive on this feature; it's a reasonably elegant way of expressing a common sizing behavior. (And it's something that's really been implemented in browsers ~forever, just using vendor-prefixed keywords and with certain legacy limitations in our case.) |
Yeah Blink's It'd be good to do this as it "explains" the other half of An important note is that |
Is the stretch keyword stable enough in the specification? |
At first glance, I think it probably is. If I find unexplained edge-cases in the spec text when I'm implementing (or cases where Chromium's |
@dholbert do you want to leave this open until you have filed those issues? |
No, I think we can close this with a 'positive' inclination (and I haven't run into any issues yet, and don't anticipate any substantial trouble). |
@dholbert |
@yisibl thanks, good catch! https://drafts.csswg.org/css-sizing-4/#sizing-values has a list of properties that should accept I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1920633 to fix this. |
Actually, Firefox already supports I made the same request at Blink-dev. |
Looking closer at the specs, I think the spec does actually already call for the keyword to be supported (though it could be clearer) - more details in https://bugzilla.mozilla.org/show_bug.cgi?id=1920633#c1 where I closed-as-invalid the bug that I just filed about this. :) |
Request for Mozilla Position on an Emerging Web Specification
stretch
)@
-mention GitHub accounts): @tabatkins, @fantasai, @jensimmonsOther information
The
stretch
keyword is a standardized version of the behavior that's traditionally been exposed by the prefixed-moz-available
and-webkit-fill-available
CSS keywords. (Minor caveat:-moz-available
only works in the inline axis for now, butstretch
and-webkit-fill-available
work in both axes.) We've observed that there are webcompat requirements for us to implement-webkit-fill-available
, and it seems the best way forward is to implement the standardizedstretch
behavior and use-webkit-fill-available
as an alias for it (while recommending that sites use the standard keyword from here on out).(@bfgeek noted in web-platform-tests/interop-2022-viewport#18 (comment) that Chromium at least has been moving towards making
-webkit-fill-available
the same as the standardizedstretch
behavior.)The text was updated successfully, but these errors were encountered: