Re: [csswg-drafts] [css-anchor-position] Invalidation of last successful position option in cases not in the spec (#12577)

OK, edited in clarifications into https://github.com/w3c/csswg-drafts/commit/5326ee9b132a14b3b3cc3d9b33679ac15951ba48, specifically we clear the last remembered option when:

* **Computed 'position' value has changed, containing block has changed, or no longer generates a box**
    * This now triggers when switching between absolute to fixed, or if an ancestor is no longer positioned, etc.
* **Its computed value for any longhand of 'position-try' has changed**
    * This now triggers on `position-try-order` and any future longhands.
* **Its computed value for any “`@position-try` property” has changed**
    * We were previously only triggering if these properties were mutated within an `@position-try` rule, now we also trigger on changes to the base style, , since those define a try option just as the `@position-try` rules do.
* **Any of the `@position-try` rules referenced by it have been added, removed, or mutated.**
    * Unchanged.

@andruud @tuankiet65 Can you please review and let us know if these changes make sense to you? They should be obvious fixes and clarifications to the existing concept.

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


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

Received on Friday, 12 September 2025 21:36:28 UTC