Re: [csswg-drafts] [css-anchor-1] Need ability to say "don't render" when anchor is off-screen (#7758)

The latest [spec draft](https://drafts.csswg.org/css-anchor-position-1/#position-visibility) currently specifies `anchors-visible` as:
> If the element has a [default anchor element](https://drafts.csswg.org/css-anchor-position-1/#default-anchor-element) but the anchor element is [clipped by intervening elements](https://drafts.csswg.org/css-anchor-position-1/#clipped-by-intervening-elements), this element is also [strongly hidden](https://drafts.csswg.org/css-anchor-position-1/#strongly-hidden).

@fantasai's original proposal would also consider visibility of the anchor element. Can this be added back with: "If the element has a [default anchor element](https://drafts.csswg.org/css-anchor-position-1/#default-anchor-element) but the anchor element is [clipped by intervening elements](https://drafts.csswg.org/css-anchor-position-1/#clipped-by-intervening-elements) **or the anchor element is not visibility: visible**, this element is also [strongly hidden](https://drafts.csswg.org/css-anchor-position-1/#strongly-hidden)."?

Should `anchors-visible` also consider whether the anchor element itself is strongly hidden? This is useful for nested anchor scenarios.

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


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

Received on Sunday, 7 April 2024 16:49:21 UTC