Skip to content

Commit

Permalink
[css-contain-2] contain:style only applies if there is a principal box
Browse files Browse the repository at this point in the history
See #7392
  • Loading branch information
frivoal committed May 30, 2024
1 parent eddb190 commit 1340485
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css-contain-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,12 @@ Style Containment</h3>
contain-style-breaks-005.html
</wpt>

However, giving an element [=style containment=]
has no effect if any of the following are true:

* if the element does not generate a <a>principal box</a>
(as is the case with ''display: contents'' or ''display: none'')

Note: [[CSS-REGIONS-1]] has normative requirements on how <a>style containment</a> affects regions.

A <dfn export for=property lt="scoped | scoped property | scoped properties">scoped property</dfn> has its effects scoped to a particular element or subtree.
Expand Down

0 comments on commit 1340485

Please sign in to comment.