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

I think JUST add display:none could be jarring as anchors scroll in and out of the viewport. 

From an Open UI perspective for `popup=hint`, it might be better to trigger a hide event when anchors scroll out of the visible content, rather than hiding and reshowing.

It might be hard to guess what a good default would be for this, hiding is not a bad idea.

Another thought is that maybe sometimes people will want the anchored element to be clipped by the scroll container rather than hidden?

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


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

Received on Monday, 26 September 2022 16:54:50 UTC