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

Another thing needing clarification: If an anchored element with `position-visibility: anchors-*` has chained anchors (like the case in #9071)
```
  <div id="anchor" style="anchor-name: --a"></div>
  <div id="chained-anchor" style="position-anchor: --a; anchor-name: --b; ..."></div>
  <div id-"anchored" style="position-anchor: --b; position-visibility: anchors-visible"></div>
```
Should `anchored` check visibility of all anchors in the anchor chain?

A simple interpretation may be like
- Visibility of `anchored` depends on `chained-anchor` only.
- If `chained-anchor` also has `position-visibility: anchors-visible`, then visibility of `anchored` will indirectly depend on `anchor` through the visibility of `chained-anchor`.

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


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

Received on Wednesday, 3 April 2024 21:46:28 UTC