[css-anchor-position] position-visibility initial value should be always
, not anchors-visible
?
#10425
Labels
Closed as Question Answered
Used when the issue is more of a question than a problem, and it's been answered.
css-anchor-position-1
Needs Testcase (WPT)
When writing MDN docs for anchor positioning, I was a bit confused by
position-visibility
— the spec says "initial value" isanchors-visible
, but surely it should bealways
?From testing:
position-visibility
value, an anchor-positioned element is always visible provided it is inside the viewport, regardless of the visibility of its anchor. This is the behavioralways
gives as well.anchors-visible
, on the other hand, causes an anchor-positioned element to be hidden if its anchor is not visible at all in the viewport.My demo illustrates the behavior of the currently-supported values, in case that is helpful.
The text was updated successfully, but these errors were encountered: