Skip to content

Commit 7948feb

Browse files
committed
Make style containment a part of ''strict'' and ''content'
See #6287
1 parent da98b8f commit 7948feb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-contain-2/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ Strong Containment: the 'contain' property</h2>
142142

143143
<dt><dfn>strict</dfn>
144144
<dd>
145-
This value computes to ''size layout paint'',
146-
and thus turns on all forms of <a>containment</a> <em>except</em> <a>style containment</a> for the element.
145+
This value computes to ''size layout paint style'',
146+
and thus turns on all forms of <a>containment</a> for the element.
147147

148148
<wpt>
149149
contain-strict-001.html
@@ -155,8 +155,8 @@ Strong Containment: the 'contain' property</h2>
155155

156156
<dt><dfn>content</dfn>
157157
<dd>
158-
This value computes to ''layout paint'',
159-
and thus turns on all forms of <a>containment</a> <em>except</em> <a>size containment</a> and <a>style containment</a> for the element.
158+
This value computes to ''layout paint style'',
159+
and thus turns on all forms of <a>containment</a> <em>except</em> <a>size containment</a> for the element.
160160

161161
<wpt>
162162
contain-content-001.html
@@ -173,7 +173,7 @@ Strong Containment: the 'contain' property</h2>
173173
However, because it doesn't apply <a>size containment</a>,
174174
the element can still respond to the size of its contents,
175175
which can cause layout-invalidation to percolate further up the tree than desired.
176-
Use ''contain: strict'' or ''contain: size layout style paint'' when possible,
176+
Use ''contain: strict'' when possible,
177177
to gain as much containment as you can.
178178

179179
<dt><dfn>size</dfn>
@@ -1878,7 +1878,7 @@ This appendix is <em>informative</em>.
18781878
Changes from <a href="https://www.w3.org/TR/2020/WD-css-contain-2-20201216/">2020-12-16 Working Draft</a>
18791879
</h3>
18801880

1881-
None yet.
1881+
* Included [=style containment=] in the ''strict'' and ''content'' keywords.
18821882

18831883
<h3 id="changes-since-2020-06-03">
18841884
Changes from <a href="https://www.w3.org/TR/2020/WD-css-contain-2-20200603/">2020-06-03 Working Draft</a>

0 commit comments

Comments
 (0)