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

Thanks tabakins for the clarifications.

> This also fails to be a [valid anchor function](https://drafts.csswg.org/css-anchor-position/#anchor-valid), and thus is ignored.

My understanding is that invalid anchor functions are ignored instead of directly falsifying `anchors-valid` or `anchors-visible` to make the anchored element invisible. An anchored element with `anchors-valid` is visible if it has at least one valid anchor function [1]. Does this understanding align with yours?

For `anchors-visible`, if there are multiple anchors referenced from valid anchor functions, should we require all or at least one of these anchors to be visible [2]?

> The whole point of the hiding behavior is to allow an element that's positioning relative to an anchor to not hover over a nonsense position when the anchor is outside the scrollport

As we do scroll adjustment [scroll adjustment](https://www.w3.org/TR/css-anchor-position-1/#scroll) only if the default anchor exists:
[1] Should we use the conditions of scroll adjustment as the preconditions of `anchors-valid` and `anchors-visible`?
[2] Should `visibility-visible` just check the visibility of the default anchor (which is our current basic implementation)?


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


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

Received on Thursday, 4 April 2024 16:35:26 UTC