[css-contain-2] Should content-visibility
apply to elements when size containment has no effect?
#7658
Labels
content-visibility
apply to elements when size containment has no effect?
#7658
https://drafts.csswg.org/css-contain/#content-visibility
That is, if
Note that
content-visibility
can trigger:Size containment has similar requirements:
The difference is that layout containment has effect in a
table
andtable-cell
boxes, socontent-visibility
applies, but size containment has no effect.Consider this testcase:
"Lorem" is not painted in either Firefox nor Chromium. But in Firefox, due to the lack of size containment, the size of the cell takes the contents into account! Seems to follow the spec, but does this make sense? Chromium ignores the requirements and force-applies size containment.
"Ipsum" is similarly not painted in Firefox, while the table takes the size of the contents. Chromium just ignores
content-visibility: hidden
in this case.So maybe say that
content-visibility
doesn't apply when size containment has no effect? And BTW I still think it would make more sense if size containment worked in table cells, see #1791.The text was updated successfully, but these errors were encountered: