Skip to content

Commit fd9495b

Browse files
committed
[css-inline] fix error in examples where arguments to intial-letters were reversed. Clarify exclusion around ininitial letters by using glyph bounding box.
1 parent ff3e9a7 commit fd9495b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

css-inline/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,15 +2408,15 @@ Some styles of drop initials do not align with the first line of text. For examp
24082408
<pre>
24092409

24102410
p::first-letter {
2411-
initial-letters: 3 2;
2411+
initial-letters: 2 3;
24122412
}
24132413

24142414
</pre>
24152415

24162416
</div>
24172417

24182418

2419-
If the second argument is ''1'', that creates a pure raised initial letter (often called “raised cap” or “stick-up cap.”
2419+
If the first argument is ''1'', that creates a pure raised initial letter (often called “raised cap” or “stick-up cap.”
24202420

24212421

24222422
<div class="example">
@@ -2428,7 +2428,7 @@ If the second argument is ''1'', that creates a pure raised initial letter (ofte
24282428
<pre>
24292429

24302430
p::first-letter {
2431-
initial-letters: 3 1;
2431+
initial-letters: 1 3;
24322432
}
24332433

24342434
</pre>
@@ -2444,13 +2444,13 @@ If an initial letter has a descender, it could crash into the (n+1)th line of te
24442444
<p class="caption">Incorrect: three-line initial letter with descender</p>
24452445
</figure>
24462446

2447-
Text should be excluded around the glyph(s) used as initial letters:
2447+
Text should be excluded around the glyph bounding boxes of the initial letters:
24482448

24492449

24502450

24512451
<figure>
24522452
<img alt="3-line drop cap with J, but four-line exclusion" src="Dropcap-J-3line-exclude.png" width="480">
2453-
<p class="caption">Correct: text excluded around glyph</p>
2453+
<p class="caption">Correct: text excluded around glyph bounding box</p>
24542454
</figure>
24552455

24562456
<p class="issue">When the initial letter has a descender, we can say that the other text should be excluded around the em-square. But for characters without descenders, this is undesirable. How do we spec this?</p>

0 commit comments

Comments
 (0)