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

A slightly revised idea: `anchor-clip: auto | none`, where
- `auto` is the default value, meaning it should be clipped by all ancestor clip boxes of the default anchor<sup>1</sup>
- `none` means no clipping, same as before

There's a possibility that in the future, this gets extended into `anchor-clip: auto | none | fallback | <anchor-element>`, meaning this element should be clipped by all ancestor clip boxes of the target element of the value, and the impl should be pretty similar. Or even extended into a multi-value syntax. But everything feels like YAGNI at least for now.

Also `auto` feels much easier for people to use, although it's semantically the same as `scroll` you suggested previously

<sup>1</sup> Note that we no longer have a separate `anchor-scroll` element due to #8675

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


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

Received on Friday, 7 July 2023 23:23:48 UTC