Skip to content

Commit d0bbc17

Browse files
authored
[css-nesting-1] Fix character reference errors (#12988)
For example: LINE 330:39: Character reference '&Bar' didn't end in ;. Replaced various instances of '&' with '&'.
1 parent 43aeb2d commit d0bbc17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

css-nesting-1/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ Syntax {#syntax}
327327
as nesting is not a syntax transformation,
328328
but rather matches on the actual elements the parent selector matches.
329329

330-
It is also true that the selector ''&Bar'' is invalid in CSS in the first place,
330+
It is also true that the selector ''&Bar'' is invalid in CSS in the first place,
331331
as the ''Bar'' part is a type selector,
332332
which must come first in the compound selector.
333-
(That is, it must be written as ''Bar&''.)
333+
(That is, it must be written as ''Bar&''.)
334334
So, luckily, there is no overlap between CSS Nesting
335335
and the preprocessor syntax.
336336
</div>
@@ -1091,10 +1091,10 @@ Nesting Selector: the ''&'' selector {#nest-selector}
10911091

10921092
While the position of a [=nesting selector=] in a [=compound selector=]
10931093
does not make a difference in its behavior
1094-
(that is, ''&.foo'' and ''.foo&'' match the same elements),
1094+
(that is, ''&amp;.foo'' and ''.foo&amp;'' match the same elements),
10951095
the existing rule that a [=type selector=], if present, must be first in the [=compound selector=]
10961096
continues to apply
1097-
(that is, ''&div'' is illegal, and must be written ''div&'' instead).
1097+
(that is, ''&amp;div'' is illegal, and must be written ''div&amp;'' instead).
10981098

10991099

11001100
<!-- Big Text: Nested Decl
@@ -1350,7 +1350,7 @@ Significant changes since the
13501350

13511351
* Clarified that the [=nesting selector=] is allowed to match featureless elements.
13521352

1353-
* Switched ''&div'' back to being invalid;
1353+
* Switched ''&amp;div'' back to being invalid;
13541354
now that Syntax does "infinite lookahead",
13551355
we no longer need to allow it.
13561356
Plus, doing so avoids a clash with preprocessors.

0 commit comments

Comments
 (0)