Bug 275938
Summary: | [css-anchor-position-1] Add style and layout interleaving for `anchor()` | ||
---|---|---|---|
Product: | WebKit | Reporter: | David Choi <david_choi5> |
Component: | CSS | Assignee: | David Choi <david_choi5> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | koivisto, ntim, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
David Choi
The spec dictates that `anchor()` calls must be resolved at computed value time.
We therefore must bounce between style and layout to properly resolve `anchor()`
calls to a <length> for the computed style.
https://drafts.csswg.org/css-anchor-position-1/#interleaving
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/130642534>
Tim Nguyen (:ntim)
There's some code in Document::resolveStyle() doing that for @container queries
David Choi
Pull request: https://github.com/WebKit/WebKit/pull/30224
EWS
Committed 280543@main (5f0104f4e2cd): <https://commits.webkit.org/280543@main>
Reviewed commits have been landed. Closing PR #30224 and removing active labels.