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

But if we consider everything and sort it on overflow only, we may end up being more "stateful?" e.g.:

1. The base style fits initially
2. Scroller moves so that the positioned element overflows - we find a fallback that fits, `--a`
3. Scroller moves to initial position, `--a` overflows. Now we consider position options list, which includes the base style, as well as fallbacks. The base style will fit, but so will another fallback, `--b`, with a bigger IMCB, so we end up picking it. 

Here's a [testcase](https://github.com/user-attachments/files/24340295/pto.html) that I think would exercise this - Chrome seems to always sort everything, Safari seems to always consider base style first before looking at the sorted fallbacks (Maybe)?

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


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

Received on Thursday, 25 December 2025 20:04:29 UTC