You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[css-contain][css-content] Clarify effects of style containement
The less mature spec (css-content) should be the one defining
how it interacts with the more mature mechanism (css-contain).
Moving existing descriptions from css-contain to css-content
Also, 'break-inside' was implied by "the break-* properties",
when only 'break-before' and 'break-after' were intended.
This is part of #1872
Editor: Florian Rivoal, On behalf of Bloomberg, https://florian.rivoal.net/, w3cid 43241
14
14
Abstract: 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.
and helps authors compose their page out of functional units,
151
155
as it limits how widely an effect a given change can have on a document.
152
156
157
+
Advisement: Specification authors introducing new properties or mechanisms
158
+
need to consider whether and how the various types of containment
159
+
affect what they are introducing,
160
+
and include in their specification any effect not described here.
161
+
153
162
<h3 id='containment-size'>
154
163
Size Containment</h3>
155
164
@@ -254,11 +263,10 @@ Style Containment</h3>
254
263
255
264
1. The following properties must have no effect on descendants of the element:
256
265
257
-
* 'break-*' (and the related aliases)
258
-
* 'bookmark-*'
259
-
* 'string-set'
266
+
* 'break-before' and 'break-after' (and the related aliases)
260
267
261
-
2. The 'counter-increment', 'counter-set', 'flow-from', 'flow-into', and 'content' (for the purpose of ''content/open-quote''/etc values) properties must be <a>scoped</a> to the element's sub-tree.
268
+
2. The 'counter-increment', 'counter-set', 'flow-from', 'flow-into', and <a property spec=css2>content</a> (for the purpose of ''content/open-quote''/etc values) properties
269
+
must be <a>scoped</a> to the element's sub-tree.
262
270
263
271
A <dfn export local-lt="scoped">scoped property</dfn> has its effects scoped to a particular element or subtree.
264
272
It must act as if the scoping element was the root of the document
@@ -399,7 +407,7 @@ Answers are provided below.
399
407
<dd>No.
400
408
</dl>
401
409
402
-
<h2 class="no-num" id="changes">Appendix A. Changes</h2>
410
+
<h2 class="no-num non-normative" id="changes">Appendix A. Changes</h2>
403
411
404
412
This appendix is <em>informative</em>.
405
413
@@ -410,6 +418,9 @@ This appendix is <em>informative</em>.
410
418
<li>Move the definition of "Becoming a formatting context" back to this specification
411
419
<li>Rename "Becoming a formatting context" to "Becoming a formatting context root".
412
420
<li>Clarify to which box paint containment clips.
421
+
<li>Move the interaction between containment and the <code>bookmark-*</code> and <code>string-set</code> properties to [[CSS-CONTENT-3]]
422
+
<li>Explicitly expnd <code>break-*</code> to </code>break-before</code> and <code>break-after</code>
423
+
to avoid implying that <code>break-inside</code> is affected by style containment.
0 commit comments