Skip to content

Commit 23ea6e0

Browse files
author
dauwhe
committed
[css-inline] fix editor's error where order of arguments to initial-letter property was reversed in previous versions of ED. Restore initial-letter to regular property rather than shorthand, per WG resolution.
1 parent 58f5228 commit 23ea6e0

1 file changed

Lines changed: 7 additions & 20 deletions

File tree

css-inline/Overview.bs

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,9 +2380,9 @@ Only the following properties can be applied to the <code>::first-letter</code>
23802380

23812381

23822382

2383-
<h3 id="sizing-drop-initials">Creating Initial Letters: the 'initial-letter' shorthand</h3>
2383+
<h3 id="sizing-drop-initials">Creating Initial Letters: the 'initial-letter' property</h3>
23842384

2385-
This <i>shorthand property</i> sets the 'initial-letter-drop' and 'initial-letter-size' properties. The first argument defines the number of lines the initial letter should sink. An N-line initial letter sinks to the Nth text baseline. The optional second argument defines how many lines the initial letter occupies. If not specified, it duplicates the first argument.
2385+
This property takes two arguments. The first argument defines the size of the initial letter, in terms of how many lines it occupies. The optional second argument argument defines the number of lines the initial letter should sink. An N-line initial letter sinks to the Nth text baseline. If not specified, it duplicates the first argument.
23862386

23872387
<pre class="propdef">
23882388
Name: <dfn id="propdef-initial-letter">initial-letter</dfn>
@@ -2392,7 +2392,7 @@ Applies to: <code>::first-letter</code> pseudo elements and inline level first c
23922392
Inherited: no
23932393
Percentages: N/A
23942394
Media: visual
2395-
Computed value: ???
2395+
Computed value: as described
23962396
</pre>
23972397

23982398

@@ -2416,19 +2416,6 @@ p::first-letter {
24162416

24172417

24182418

2419-
<pre class="propdef">
2420-
Name: <dfn id="propdef-initial-letter-size">initial-letter-size</dfn>
2421-
Value: normal | <<integer>>
2422-
Initial: normal
2423-
Applies to: <code>::first-letter</code> pseudo elements and inline level first child of a block container
2424-
Inherited: no
2425-
Percentages: N/A
2426-
Media: visual
2427-
Computed value: ???
2428-
</pre>
2429-
2430-
2431-
24322419
Some styles of drop initials do not align with the first line of text. For example, “sunken caps” both sink below the first baseline, and extend above the first line of text. In these cases, the size of the initial cap needs to be defined. The optional second argument of 'initial-letter' specifies the size of an initial letter, as if it were an n-line drop cap.
24332420

24342421

@@ -2447,15 +2434,15 @@ Some styles of drop initials do not align with the first line of text. For examp
24472434
<pre>
24482435

24492436
p::first-letter {
2450-
initial-letter: 2 3;
2437+
initial-letter: 3 2;
24512438
}
24522439

24532440
</pre>
24542441

24552442
</div>
24562443

24572444

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

24602447

24612448
<div class="example">
@@ -2467,7 +2454,7 @@ If the first argument is ''1'', that creates a pure raised initial letter (often
24672454
<pre>
24682455

24692456
p::first-letter {
2470-
initial-letter: 1 3;
2457+
initial-letter: 3 1;
24712458
}
24722459

24732460
</pre>
@@ -2551,7 +2538,7 @@ An initial letter does not affect the position of its containing element. For
25512538

25522539
<figure>
25532540
<img src="initial-letter-drop-para-compare.png" alt="raised cap para after normal para" width="600"/>
2554-
<p class="caption">Raised cap (<code>initial-letter: 1 3</code>) on right; note that the position of the “C” is the same in both cases, but on the right all text is moved down relative to the initial letter.</p>
2541+
<p class="caption">Raised cap (<code>initial-letter: 3 1</code>) on right; note that the position of the “C” is the same in both cases, but on the right all text is moved down relative to the initial letter.</p>
25552542
</figure>
25562543

25572544

0 commit comments

Comments
 (0)