@@ -17,6 +17,7 @@ Editor: Florian Rivoal, On behalf of Bloomberg, https://florian.rivoal.net/, w3c
1717Abstract : This CSS module describes the 'contain' property, which indicates that the element's subtree is independent of the rest of the page. This enables heavy optimizations by user agents when used well.
1818Ignored Terms : scrollWidth, scrollHeight, clientWidth, clientHeight
1919WPT Path Prefix : css/css-contain/
20+ At risk : [=style containment=] and the ''contain: style'' value
2021</pre>
2122<pre class="anchors">
2223spec: css2; urlPrefix: https://www.w3.org/TR/CSS2/
@@ -60,7 +61,7 @@ Strong Containment: the 'contain' property</h2>
6061
6162 <pre class='propdef'>
6263 Name : contain
63- Value : none | strict | content | [ size || layout || style || paint ]
64+ Value : none | [ strict | content | [ size || layout || paint ] ] || style
6465 Initial : none
6566 Inherited : no
6667 Applies to : See <a href="#contain-applies">below</a>
@@ -94,22 +95,21 @@ Strong Containment: the 'contain' property</h2>
9495
9596 <dt> <dfn>strict</dfn>
9697 <dd>
97- This value turns on all forms of <a>containment</a> for the element.
98- In other words, it behaves the same as ''contain: size layout style paint;'' ,
99- so that its contents are guaranteed to have no effect on the rest of the page outside the element's bounds.
98+ This value turns on all forms of <a>containment</a> <em> except</em> <a>style containment</a> for the element.
99+ In other words, it behaves the same as ''contain: size layout paint;'' .
100100
101101 <dt> <dfn>content</dfn>
102102 <dd>
103- This value turns on all forms of <a>containment</a> <em> except</em> <a>size containment</a> for the element.
104- In other words, it behaves the same as ''contain: layout style paint;'' .
103+ This value turns on all forms of <a>containment</a> <em> except</em> <a>size containment</a> and <a>style containment</a> for the element.
104+ In other words, it behaves the same as ''contain: layout paint;'' .
105105
106106 Note: ''contain: content'' is reasonably "safe" to apply widely;
107107 its effects are fairly minor in practice,
108108 and most content won't run afoul of its restrictions.
109109 However, because it doesn't apply <a>size containment</a> ,
110110 the element can still respond to the size of its contents,
111111 which can cause layout-invalidation to percolate further up the tree than desired.
112- Use ''contain: strict'' when possible,
112+ Use ''contain: strict'' or ''contain: strict style'' when possible,
113113 to gain as much containment as you can.
114114
115115 <dt> <dfn>size</dfn>
@@ -132,6 +132,8 @@ Strong Containment: the 'contain' property</h2>
132132 for properties which can have effects on more than just an element and its descendants,
133133 those effects don't escape the containing element.
134134
135+ Note: This value is at-risk.
136+
135137 <dt> <dfn>paint</dfn>
136138 <dd>
137139 This value turns on <a>paint containment</a> for the element.
@@ -500,6 +502,8 @@ Layout Containment</h3>
500502<h3 id='containment-style'>
501503Style Containment</h3>
502504
505+ Note: Style Containment is at-risk.
506+
503507 Giving an element <dfn export>style containment</dfn> has the following effects:
504508
505509 1. The 'counter-increment' and 'counter-set' properties
@@ -768,6 +772,13 @@ Answers are provided below.
768772
769773This appendix is <em> informative</em> .
770774
775+ <h3 id="2018-11-08-changes">Changes from the
776+ <a href="https://www.w3.org/TR/2018/CR-css-contain-1-20181108/">Candidate Recommendation of 08 November 2018</a></h3>
777+
778+ <p> A full <a href="https://drafts.csswg.org/css-contain/issues-2018-11-cr.html">Disposition of Comments</a> is available.
779+
780+ * Exclude [=style containment=] from ''contain: strict'' and ''contain: content'' , and mark it at risk.
781+
771782<h3 id="2018-05-24-changes">Changes from the
772783<a href="https://www.w3.org/TR/2018/CR-css-contain-1-20180524/">Candidate Recommendation of 24 May 2018</a></h3>
773784
0 commit comments