Currently, content-visibility is specified to have three values: visible, which does nothing; hidden, which hides the element and applies containments; and auto, which switches between hidden behavior and a visible-with-containments behavior that is otherwise not representable via content-visibility.
This seems weird! Particularly with hidden-matchable, where the author is expected to flip the element into being visible, flipping it to visible is probably wrong (you lose the containments, unless you've applied them independently) and flipping it to auto feels awkward and, depending on scroll position, might not actually make the element visible.
fantasai and I think that it would be better to have an explicit value for each of auto’s states, calling them hidden and visible; and to call the initial value, which has no effect on the element, normal.
Currently,
content-visibilityis specified to have three values:visible, which does nothing;hidden, which hides the element and applies containments; andauto, which switches betweenhiddenbehavior and a visible-with-containments behavior that is otherwise not representable viacontent-visibility.This seems weird! Particularly with
hidden-matchable, where the author is expected to flip the element into being visible, flipping it tovisibleis probably wrong (you lose the containments, unless you've applied them independently) and flipping it toautofeels awkward and, depending on scroll position, might not actually make the element visible.fantasai and I think that it would be better to have an explicit value for each of
auto’s states, calling themhiddenandvisible; and to call the initial value, which has no effect on the element,normal.