-
Notifications
You must be signed in to change notification settings - Fork 27
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
Containment #19
Comments
There are a lot of tests in https://wpt.fyi/results/css/css-contain, but they seem to be about the It loos like we have a bunch of tests in Chromium that haven't been upstreamed to WPT yet: Are those tests sufficient? |
We plan to move the tests in wpt_internal over to wpt/css/css-contain/ over the next couple of weeks, but not necessarily file by file. We probably want to restructure based on common testing patterns and organize per spec section to make it easier to check coverage. |
We would like to land this first as the basic syntax changed from our current impl: https://chromium-review.googlesource.com/c/chromium/src/+/3301380 |
I've added the |
@una says that w3c/csswg-drafts#6426 is probably the last issue remaining and that publishing might be a few weeks out. |
As noted, it appears is somewhat surprising there's still no FPWD. It's surprising that we've not reached a point where the spec can be published at all, as after all it's a first draft, and not a last draft. The CSS WG resolved in June:
See also question on IRC today. |
The CSS WG has just resolved to publish a FPWD for Contain 3: w3c/csswg-drafts#6426 (comment) |
Note: We recently WPT-ified and upstreamed our tests for container queries + inline-size containment: /css/css-contain/container-queries/* |
Per #39 (comment) we're not going to include Container Queries in Interop 2022, but there's still an open question about the |
A question that came up when discussing this is whether it's just the |
@annevk sorry I didn't see the notification for this. It's just the If there are types of containment that not everyone wants to include in Interop 2022, we could discuss a subset. |
Thanks that helps! We'd be Neutral if |
Thanks @annevk. In chat we also realized that @andruud helped me identify the set of tests for that, which I've labeled as More useful info from Anders:
|
@andruud kindly took another pass over those.
I'll label those additional tests too. |
@annevk said '(strict tests where the style aspect doesn't matter are still fair game.)' on Matrix |
We'll include the size, layout and paint containment subset of this proposal. |
i.e., |
A proposed list of tests has been labeled with |
Description
Container queries enable the querying of a parent element for responsive design information instead of relying on the global viewport (as with media queries). These rely on the containment spec, and enables component-level logic for styling based on inline and block size.
Kapture.2021-11-01.at.14.59.02.mp4
More on MDN
Specification
CSS-Contain-3
Tests
TBD
Rationale
This is consistently one of the top rated feature requests by developers and unlocks more customizable component-level responsive design. [Post] [Developer Response to WIP]
The text was updated successfully, but these errors were encountered: