Bug 308295
| Summary: | Do not apply style containment to elements without a principal box | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | shimaryuhei |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
shimaryuhei
Style containment should have no effect on elements that do not generate
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
shimaryuhei
Style containment should have no effect on elements that do not generate
a principal box, per the CSS Containment specification.
WebKit currently applies `contain: style` to such elements.
This change makes the behavior spec-compliant.
Spec:
https://drafts.csswg.org/css-contain/#containment-style
WPT:
https://wpt.live/css/css-contain/contain-style-counters-002.html
shimaryuhei
Pull request: https://github.com/WebKit/WebKit/pull/59084
Radar WebKit Bug Importer
<rdar://problem/171352369>
EWS
Committed 308341@main (37e919fcc616): <https://commits.webkit.org/308341@main>
Reviewed commits have been landed. Closing PR #59084 and removing active labels.