Skip to content

Commit d7c64a5

Browse files
committed
[css-contain] Editorial / obvious bugfix improvements to style scoping
Part of #2349
1 parent 6aa60e8 commit d7c64a5

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

css-contain-1/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ Style Containment</h3>
260260
Note: [[CSS-REGIONS-1]] has normative requirements on how <a>style containment</a> affects regions.
261261

262262
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
264265
for the purpose of evaluating the property's effects:
265266
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,
266267
and vice versa.
@@ -271,7 +272,7 @@ Style Containment</h3>
271272
When scoped, the 'counter-set' and 'counter-increment' <a spec=css-lists-3>create a new counter</a>.
272273

273274
<div class=example>
274-
If 'counter-increment' is scoped to an element,
275+
If 'counter-increment' is scoped to an element's subtree,
275276
the first use of it within the subtree acts as if the named counter were set to 0 at the scoping element,
276277
regardless of whether the counter had been used outside the scoping element.
277278
Any increments made within the subtree have no effect on counters of the same name outside the scoping element.

css-contain-1/issues-2017-cr.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ <h1>CSS Contain Level 1 Disposition of Comments for 2017-02-21 WD</h1>
100100
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-377214307'>https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-377214307</a>
101101
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-379124749'>https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-379124749</a>
102102
Open</pre>
103+
<pre class=' open' id='issue-9'>
104+
Issue 9. <a href='#issue-9'>#</a>
105+
Summary: Clarify style containment property scopment
106+
From: Oriol Brufau
107+
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2349'>https://github.com/w3c/csswg-drafts/issues/2349</a>
108+
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2349#issuecomment-379127071'>https://github.com/w3c/csswg-drafts/issues/2349#issuecomment-379127071</a>
109+
Open</pre>
103110
<script>
104111
(function () {
105112
var sheet = document.styleSheets[0];

css-contain-1/issues-2017-cr.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,10 @@ Comment: https://github.com/w3c/csswg-drafts/issues/2483
7070
Comment: https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-377214307
7171
Response: https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-379124749
7272
Open
73+
----
74+
Issue 9.
75+
Summary: Clarify style containment property scopment
76+
From: Oriol Brufau
77+
Comment: https://github.com/w3c/csswg-drafts/issues/2349
78+
Response: https://github.com/w3c/csswg-drafts/issues/2349#issuecomment-379127071
79+
Open

0 commit comments

Comments
 (0)