Bug 306830

Summary: Sort position-try options using containing block writing mode for interpreting position-try-order
Product: WebKit Reporter: fantasai <fantasai.bugs>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: NEW    
Severity: Normal CC: fantasai.bugs, kiet.ho, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 289743, 291856    

fantasai
Reported 2026-02-02 20:25:29 PST
Currently we use the box's own writing mode to resolve position-try-order values, but the spec was updated to use the containing block writing mode. See https://github.com/w3c/csswg-drafts/issues/12869#issuecomment-3406959070 and https://wpt.live/css/css-anchor-position/position-try-order-logical.html The relevant code lives in TreeResolver::sortPositionOptionsIfNeeded() ; should be an easy fix.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-02 20:34:26 PST
Note You need to log in before you can comment on or make changes to this bug.