[csswg-drafts] [css-contain-2] Effects of content-visibility on elements that do not generate a box (#10848)

sammygill has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain-2] Effects of content-visibility on elements that do not generate a box ==
```<!DOCTYPE html>
<html>
<div style="display: contents; content-visibility: hidden;">
  <div>
    <div style="width: 100px; height: 100px; background-color: green;"></div>
  </div>
</div>
</html>
```

In the above example we have `content-visibility: hidden` on an element which has `display: contents`. In this case what should the behavior be of the property, if anything, since the element it is on does not generate a box in the box tree. 

The spec does not seem to say anything explicitly about scenarios like this so I am wondering if the effect would be to just ignore `content-visibility` or if there is a more desirable outcome? 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10848 using your GitHub account


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

Received on Friday, 6 September 2024 18:16:59 UTC