Bug 275938

Summary: [css-anchor-position-1] Add style and layout interleaving for `anchor()`
Product: WebKit Reporter: David Choi <david_choi5>
Component: CSSAssignee: 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
Reported 2024-06-26 20:33:10 PDT
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
Radar WebKit Bug Importer
Comment 1 2024-06-26 20:34:05 PDT
Tim Nguyen (:ntim)
Comment 2 2024-06-26 21:53:04 PDT
There's some code in Document::resolveStyle() doing that for @container queries
David Choi
Comment 3 2024-06-26 22:17:38 PDT
EWS
Comment 4 2024-07-01 11:15:34 PDT
Committed 280543@main (5f0104f4e2cd): <https://commits.webkit.org/280543@main> Reviewed commits have been landed. Closing PR #30224 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.