Skip to content
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

Unprefixed stretch keyword for size-declaring CSS properties #726

Open
BenjaminAster opened this issue Sep 18, 2024 · 2 comments
Open

Unprefixed stretch keyword for size-declaring CSS properties #726

BenjaminAster opened this issue Sep 18, 2024 · 2 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@BenjaminAster
Copy link

Description

The stretch value for (min-/max-)width/height/inline-size/block-size is currently implemented as -webkit-fill-available in Chromium and WebKit, and -moz-available in Firefox.

Note that there are some layout edge cases with floats etc. that still need to be fixed in various browsers, and the implementations generally differ significantly from the specification.


This issue is one of seven issues regarding unprefixing CSS properties/values, originally all in #702 (as per #702 (comment)). The aim is to group the properties together into multiple (but not seven) focus areas.

Specification

https://drafts.csswg.org/css-sizing-4/#sizing-values

Additional Signals

@yisibl
Copy link

yisibl commented Sep 23, 2024

Chrome is ready to improve it:
https://groups.google.com/a/chromium.org/g/blink-dev/c/fxGpXGV0hYc

@davidsgrogan
Copy link
Member

The first set of tests for this feature recently landed here.

There are a few more tests scattered around in other directories that we could probably also include if we just substitute stretch in place of the vendor prefixed version of stretch.

I also intend to land more tests for stretch behavior in the same directory during the week of Oct 28 - Nov 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

3 participants