Re: [csswg-drafts] [css-anchor-position] Clarification: effect of `position-try-fallbacks` and `position-try-order` when the positioned box does not overflow (#13268)

Seems like I chimed in this issue a bit too late, but anyway

> Safari seems to agree with my interpretation that fallbacks are not considered if the base styles work without overflow

Safari's logic:
1. Gather the base style and styles generated by position-try options in an option list
2. Only sort the position-try option styles by `position-try-order`, keep the base style intact
3. Move items in the option list around to account for last-successful option
4. Try each option from first in list to last until an option doesn't overflow

So ignoring 3), Safari currently doesn't sort the base style together with options. Safari will sort the position-try options, but will always try the base style first before trying position options.

-- 
GitHub Notification of comment by tuankiet65
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13268#issuecomment-4180741112 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 2 April 2026 22:07:08 UTC