[go: nahoru, domu]

Skip to content

Commit

Permalink
[css-pseudo-4] Spaces are Zs not S ... #5830
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Dec 27, 2021
1 parent f89a04a commit bd1505f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,15 @@ First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''
</ul>

<div class="note">
Informally represented, the first-letter text’s pattern here is
Informally represented, the [=first-letter text=]’s pattern here
can be roughly
(ignoring the exclusion of word separators from <code>Zs</code>)
represented as
<code highlight="bnf" style="font-family: inherit">
(S|P)* (L|N)+ (S|P^(Ps|Pd))*</code>
(Zs|P)* (L|N)+ (Zs|P^(Ps|Pd))*</code>
or, alternatively,
<code highlight="bnf" style="font-family: inherit">
[S P]* [L N]+ [[S] [P--[Ps Pd]]]*</code>
[Zs P]* [L N]+ [[Zs] [P--[Ps Pd]]]*</code>
<!-- this is not actually BNF, but it highlights better that way -->
</div>

Expand Down

0 comments on commit bd1505f

Please sign in to comment.