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
Copy file name to clipboardExpand all lines: css-contain-1/Overview.bs
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -290,12 +290,12 @@ Style Containment</h3>
290
290
Giving an element <dfn export>style containment</dfn> has the following effects:
291
291
292
292
1. The 'counter-increment' and 'counter-set' properties
293
-
must be <a for=property>scoped</a> to the element's sub-tree
293
+
must be <a for=property>scoped to the element's sub-tree</a>
294
294
and create a new counter.
295
295
296
296
2. The effects of the 'content' property's
297
297
''content/open-quote'', ''content/close-quote'', ''content/no-open-quote'' and ''content/no-close-quote''
298
-
must be <a for=property>scoped</a> to the element's sub-tree.
298
+
must be <a for=property>scoped to the element's sub-tree</a>.
299
299
300
300
Note: This implies that the depth of quote nesting in the subtree
301
301
is unchanged and starts at the value that its context normally implies,
@@ -305,17 +305,22 @@ Style Containment</h3>
305
305
Note: [[CSS-REGIONS-1]] has normative requirements on how <a>style containment</a> affects regions.
306
306
307
307
A <dfn export for=property lt="scoped | scoped property | scoped properties">scoped property</dfn> has its effects scoped to a particular element or subtree.
308
-
If scoped to an element,
309
-
it must act as if the scoping element was the root of the document
310
-
for the purpose of evaluating the property's effects:
311
-
any uses of the property outside the scoping element must have no effect on the uses of the property on or in the scoping element,
312
-
and vice versa.
313
-
If scoped to a sub-tree, it's the same,
314
-
except the scoping element itself is counted as "outside" the tree,
315
-
like the rest of the document,
316
-
and the effects of the property on that element are unaffected by scoping.
317
-
When considering the effects of the scoped property on elements <em>inside</em> the subtree,
318
-
the element at the base of the subtree is treated as if it was the root of the document.
308
+
309
+
* If <dfn export for=property lt="scoped to an element | scoped to the element">scoped to an element</dfn>,
310
+
it must act as if the scoping element was the root of the document
311
+
for the purpose of evaluating the property's effects:
312
+
any uses of the property outside the scoping element must have no effect on the uses of the property on or in the scoping element,
313
+
and vice versa.
314
+
315
+
Note: “Scoping to an element” is currently unused.
316
+
It is defined as an exention point for future specifications to use.
317
+
318
+
* If <dfn export for=property lt="scoped to a sub-tree | scoped to the sub-tree | scoped to the element's sub-tree | scoped to an element's sub-tree">scoped to a sub-tree</dfn>, it's the same,
319
+
except the scoping element itself is counted as "outside" the tree,
320
+
like the rest of the document,
321
+
and the effects of the property on that element are unaffected by scoping.
322
+
When considering the effects of the scoped property on elements <em>inside</em> the subtree,
323
+
the element at the base of the subtree is treated as if it was the root of the document.
319
324
320
325
<div class=example>
321
326
As 'counter-increment' is scoped to an element's subtree,
@@ -469,6 +474,7 @@ This appendix is <em>informative</em>.
469
474
* Size containment does not apply to tables
470
475
* Clarify that the columns and grid properties affect the size of size-contained elements
471
476
* Change the animation type of the contain property from discrete to not animatable
477
+
* Editorial improvements
472
478
473
479
<h3 id="2017-08-08-changes">Changes from the
474
480
<a href="https://www.w3.org/TR/2017/CR-css-contain-1-20170808/">Candidate Recommendation of 8 August 2017</a></h3>
0 commit comments