Skip to content

Commit b4fae7c

Browse files
committed
[css-nesting] clarifications
1 parent 991b34c commit b4fae7c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css-nesting-1/Overview.bs

+6-1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ Direct Nesting {#direct}
240240
& { padding: 2ch; }
241241
}
242242
/* equivalent to
243+
.foo { color: blue; }
244+
.foo { padding: 2ch; }
245+
246+
// and
247+
243248
.foo {
244249
color: blue;
245250
padding: 2ch;
@@ -313,7 +318,7 @@ Direct Nesting {#direct}
313318
&&.bar { color: blue; }
314319
}
315320
/* Invalid because the 1st & is no longer
316-
at the start of a nesting selector */
321+
at the start of a compound selector */
317322

318323
.foo {
319324
color: red;

0 commit comments

Comments
 (0)