Skip to content

Commit 1340485

Browse files
committed
[css-contain-2] contain:style only applies if there is a principal box
See #7392
1 parent eddb190 commit 1340485

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-contain-2/Overview.bs

+6
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,12 @@ Style Containment</h3>
10611061
contain-style-breaks-005.html
10621062
</wpt>
10631063

1064+
However, giving an element [=style containment=]
1065+
has no effect if any of the following are true:
1066+
1067+
* if the element does not generate a <a>principal box</a>
1068+
(as is the case with ''display: contents'' or ''display: none'')
1069+
10641070
Note: [[CSS-REGIONS-1]] has normative requirements on how <a>style containment</a> affects regions.
10651071

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

0 commit comments

Comments
 (0)