Skip to content

Commit 64d045f

Browse files
committed
[css-syntax] More serialization corner cases.
1 parent c5300f2 commit 64d045f

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

css-syntax/Overview.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4483,7 +4483,7 @@ <h2 class="heading settled heading" data-level=9 id=serialization><span class=se
44834483
CSS grammars always interpret any amount of whitespace as identical to a single space.
44844484

44854485
<div class=note id=serialization-tables><style scoped>
4486-
#serialization-tables th { font-size: 85%; line-height: normal }
4486+
#serialization-tables th { font-size: 80%; line-height: normal }
44874487
</style>
44884488

44894489
<a class=self-link href=#serialization-tables></a>
@@ -4496,9 +4496,17 @@ <h2 class="heading settled heading" data-level=9 id=serialization><span class=se
44964496
followed by a <a data-link-type=dfn href=#newline title=newline>newline</a>.
44974497
(The tokenizer only ever emits such a token followed by a <a class="production css-code" data-link-type=type href=#typedef-whitespace-token title="<whitespace-token>">&lt;whitespace-token&gt;</a>
44984498
that starts with a newline.)
4499+
4500+
<li>
4501+
A <a class="production css-code" data-link-type=type href=#typedef-hash-token title="<hash-token>">&lt;hash-token&gt;</a> with the "unrestricted" type flag may not need
4502+
as much escaping as the same token with the "id" type flag.
4503+
44994504
<li>
4505+
The unit of a <a class="production css-code" data-link-type=type href=#typedef-dimension-token title="<dimension-token>">&lt;dimension-token&gt;</a> may need escaping
4506+
to disambiguate with scientific notation.
45004507

4501-
<p> For any consecutive pair of tokens,
4508+
<li>
4509+
For any consecutive pair of tokens,
45024510
if the first token shows up in the row headings of either of the following two tables,
45034511
and the second token shows up in the column headings,
45044512
and there’s a ✗ in the cell denoted by the intersection of the chosen row and column,

css-syntax/Overview.src.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2997,8 +2997,16 @@ <h2 id="serialization">
29972997
followed by a <a>newline</a>.
29982998
(The tokenizer only ever emits such a token followed by a <<whitespace-token>>
29992999
that starts with a newline.)
3000+
3001+
<li>
3002+
A <<hash-token>> with the "unrestricted" type flag may not need
3003+
as much escaping as the same token with the "id" type flag.
3004+
30003005
<li>
3006+
The unit of a <<dimension-token>> may need escaping
3007+
to disambiguate with scientific notation.
30013008

3009+
<li>
30023010
For any consecutive pair of tokens,
30033011
if the first token shows up in the row headings of either of the following two tables,
30043012
and the second token shows up in the column headings,
@@ -3016,7 +3024,7 @@ <h2 id="serialization">
30163024
</ul>
30173025

30183026
<style>
3019-
#serialization-tables th { font-size: 85%; line-height: normal }
3027+
#serialization-tables th { font-size: 80%; line-height: normal }
30203028
</style>
30213029

30223030
<table class='data'>

0 commit comments

Comments
 (0)