Re: [csswg-drafts] [css-anchor-position-1] Clarify interaction of anchors and positioned elements with content-visibility (#10184)

> As an aside, I presume that if the positioned element is display: none or something, then it's not actually a positioned element and thus is not anchoring to the anchor.

Do you mean the scenario where the anchor element itself has display: none? In that case, the [spec](https://drafts.csswg.org/css-anchor-position-1/#name) says that anchor-name only applies to elements that produce a principle box, and this wouldn't happen with display none. Or do you mean the case where the anchored element has display: none; in which case, is the effect observable either way?

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


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

Received on Tuesday, 9 April 2024 16:45:27 UTC