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
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -260,7 +260,8 @@ Style Containment</h3>
260
260
Note: [[CSS-REGIONS-1]] has normative requirements on how <a>style containment</a> affects regions.
261
261
262
262
A <dfn export for=property lt="scoped | scoped property | scoped properties">scoped property</dfn> has its effects scoped to a particular element or subtree.
263
-
It must act as if the scoping element was the root of the document
263
+
If scoped to an element,
264
+
it must act as if the scoping element was the root of the document
264
265
for the purpose of evaluating the property's effects:
265
266
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,
266
267
and vice versa.
@@ -271,7 +272,7 @@ Style Containment</h3>
271
272
When scoped, the 'counter-set' and 'counter-increment'<a spec=css-lists-3>create a new counter</a>.
272
273
273
274
<div class=example>
274
-
If 'counter-increment' is scoped to an element,
275
+
If 'counter-increment' is scoped to an element's subtree,
275
276
the first use of it within the subtree acts as if the named counter were set to 0 at the scoping element,
276
277
regardless of whether the counter had been used outside the scoping element.
277
278
Any increments made within the subtree have no effect on counters of the same name outside the scoping element.
0 commit comments