Skip to content

Commit b86052b

Browse files
committed
[css-pseudo-4] Add Symbols to possible First Letters. #5099
1 parent bd1505f commit b86052b

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

css-pseudo-4/Overview.bs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,12 @@ Inheritance and the ''::first-line'' Pseudo-element</h4>
278278
First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''::postfix'' children</h3>
279279

280280
The <dfn>::first-letter</dfn> [=pseudo-element=] represents
281-
the first <a>typographic letter unit</a> [[!CSS-TEXT-3]]
282-
on the <a>first formatted line</a> of its <a>originating element</a>,
283-
its <dfn>first-letter text</dfn>.
281+
the first Letter, Number, or Symbol
282+
(Unicode category <code>L*</code>, <code>N*</code>, or <code>S*</code>) [=typographic character unit=] [[!CSS-TEXT-3]]
283+
on the <a>first formatted line</a> of its <a>originating element</a>
284+
(the <dfn>first letter</dfn>)
285+
as well as its associated punctuation.
286+
Collectively, this text is the <dfn>first-letter text</dfn>.
284287
The ''::first-letter'' pseudo-element can be used
285288
to create “initial caps” and “drop caps”,
286289
which are common typographic effects.
@@ -294,17 +297,17 @@ First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''
294297
</div>
295298

296299
As explained in [[!CSS-TEXT-3]],
297-
a <a>typographic letter unit</a> can include more than one Unicode codepoint.
300+
a <a>typographic character unit</a> can include more than one Unicode codepoint.
298301
For example, combining characters must be kept with their base character.
299302
Also, languages may have additional rules
300303
about how to treat certain letter combinations.
301304
In Dutch, for example, if the letter combination "ij" appears at the beginning of an element,
302305
both letters should be considered within the ''::first-letter'' pseudo-element. [[UAX29]]
303-
When selecting the [=first-letter text=],
304-
the UA should tailor its definition of <a>typographic letter unit</a>
306+
When selecting the [=first letter=],
307+
the UA should tailor its definition of <a>typographic character unit</a>
305308
to reflect the first-letter traditions of the ''::first-letter'' pseudo-element’s <em>containing block</em>’s content language.
306309

307-
Note: Note that the first <a>typographic letter unit</a> may in fact
310+
Note: Note that the [=first letter=] may in fact
308311
be a digit, e.g., the “6” in “67 million dollars is a lot of money.”
309312

310313
Preceding and following punctuation
@@ -315,13 +318,13 @@ First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''
315318
<li>
316319
All punctuation--
317320
i.e, characters that belong to the Punctuation (<code>P*</code>) <a>Unicode general category</a> [[!UAX44]]--
318-
that precedes the first [=typographic letter unit=]
321+
that precedes the [=first letter=].
319322
<li>
320323
Punctuation other than opening punctuation and dashes--
321324
i.e. characters that belong to the Punctuation (<code>P*</code>) <a>Unicode general category</a>,
322325
excluding Open Punctuation (<code>Ps</code>)
323326
and Dash Punctuation (<code>Pd</code>)--
324-
that follows the first [=typographic letter unit=]
327+
that follows the [=first letter=].
325328
<li>
326329
Any intervening typographic space--
327330
i.e. characters that belong to the <code>Zs</code> Unicode general category [[!UAX44]]
@@ -336,18 +339,18 @@ First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''
336339
(ignoring the exclusion of word separators from <code>Zs</code>)
337340
represented as
338341
<code highlight="bnf" style="font-family: inherit">
339-
(Zs|P)* (L|N)+ (Zs|P^(Ps|Pd))*</code>
342+
(Zs|P)* (L|N|S)+ (Zs|P^(Ps|Pd))*</code>
340343
or, alternatively,
341344
<code highlight="bnf" style="font-family: inherit">
342-
[Zs P]* [L N]+ [[Zs][P--[Ps Pd]]]*</code>
345+
[Zs P]* [L N S]+ [[Zs][P--[Ps Pd]]]*</code>
343346
<!-- this is not actually BNF, but it highlights better that way -->
344347
</div>
345348

346349
<div class="figure">
347350
<img alt="Quotes that precede the first letter should be included." src="images/first-letter2.gif">
348351
</div>
349352

350-
To allow independent styling of the first letter itself
353+
To allow independent styling of the [=first letter=] itself
351354
and its adjacent punctuation,
352355
such preceding punctuation
353356
is represented by the <dfn for="::first-letter">::prefix</dfn>

0 commit comments

Comments
 (0)