@@ -278,9 +278,12 @@ Inheritance and the ''::first-line'' Pseudo-element</h4>
278
278
First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''::postfix'' children</h3>
279
279
280
280
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> .
284
287
The ''::first-letter'' pseudo-element can be used
285
288
to create “initial caps” and “drop caps”,
286
289
which are common typographic effects.
@@ -294,17 +297,17 @@ First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''
294
297
</div>
295
298
296
299
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.
298
301
For example, combining characters must be kept with their base character.
299
302
Also, languages may have additional rules
300
303
about how to treat certain letter combinations.
301
304
In Dutch, for example, if the letter combination "ij" appears at the beginning of an element,
302
305
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>
305
308
to reflect the first-letter traditions of the ''::first-letter'' pseudo-element’s <em> containing block</em> ’s content language.
306
309
307
- Note: Note that the first <a>typographic letter unit</a> may in fact
310
+ Note: Note that the [= first letter=] may in fact
308
311
be a digit, e.g., the “6” in “67 million dollars is a lot of money.”
309
312
310
313
Preceding and following punctuation
@@ -315,13 +318,13 @@ First-Letter Text: ''::first-letter'' pseudo-element and its ''::prefix'' and ''
315
318
<li>
316
319
All punctuation--
317
320
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=] .
319
322
<li>
320
323
Punctuation other than opening punctuation and dashes--
321
324
i.e. characters that belong to the Punctuation (<code> P*</code> ) <a>Unicode general category</a> ,
322
325
excluding Open Punctuation (<code> Ps</code> )
323
326
and Dash Punctuation (<code> Pd</code> )--
324
- that follows the first [=typographic letter unit=]
327
+ that follows the [=first letter=] .
325
328
<li>
326
329
Any intervening typographic space--
327
330
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 ''
336
339
(ignoring the exclusion of word separators from <code> Zs</code> )
337
340
represented as
338
341
<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>
340
343
or, alternatively,
341
344
<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>
343
346
<!-- this is not actually BNF, but it highlights better that way -->
344
347
</div>
345
348
346
349
<div class="figure">
347
350
<img alt="Quotes that precede the first letter should be included." src="images/first-letter2.gif">
348
351
</div>
349
352
350
- To allow independent styling of the first letter itself
353
+ To allow independent styling of the [= first letter=] itself
351
354
and its adjacent punctuation,
352
355
such preceding punctuation
353
356
is represented by the <dfn for="::first-letter">::prefix</dfn>
0 commit comments