Closed Bug 1755565 Opened 2 years ago Closed 2 years ago

[css-contain-3] Implement "contain: inline-size" (Inline-Size Containment)

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: dholbert, Assigned: dshin)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 1 obsolete file)

Filing this bug on implementing contain: inline-size, which turns on inline size containment, as described in css-contain-3:
https://www.w3.org/TR/css-contain-3/#valdef-contain-inline-size

There are some tests for this feature here:
https://wpt.fyi/results/css/css-contain?label=master&label=experimental&aligned&q=contain-inline-size

Right now, all browsers fail all-but-one of those tests (the one exception being contain-inline-size-table.html which everyone passes because it's a test for the feature not doing anything on tables, since size containment explicitly doesn't apply to tables).

If I visit chrome://flags/ in Chrome Dev Edition and enable their experimental support for Container Queries, then it looks like they pass all the tests except for http://wpt.live/css/css-contain/contain-inline-size-multicol.html .

Assignee: dholbert → dshin
See Also: → 1763431

Change in progress, but will still fail relevant WPT contain-inline-size-bfc-floats-001.html due to Bug 1763431.

Keywords: leave-open
Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e3fd585c58fa
Implement `contain: inline-size`. r=emilio,dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/33696 for changes under testing/web-platform/tests
Regressions: 1765426
Blocks: 1765426
No longer regressions: 1765426
Upstream PR merged by moz-wptsync-bot
Keywords: leave-open
Blocks: 1765654

Comment on attachment 9273074 [details]
Bug 1755565 - Simplify nsVideoFrame::GetMinISize, r=dholbert

Revision D144182 was moved to bug 1765654. Setting attachment 9273074 [details] to obsolete.

Attachment #9273074 - Attachment is obsolete: true

Closing this bug as FIXED, since the main patch landed & this was only being left open for the followup refactoring patch, which I've now moved to bug 1765654 due to the fact that it's not actually a pure refactoring.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Hi Daniel, I've added dev-docs-complete keyword for this bug; the following GitHub issue is a parent task to track all documentation changes related to this:

https://github.com/mdn/content/issues/19831

Thanks!

Good to know, thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: