You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
Copy file name to clipboardExpand all lines: css-inline/Overview.bs
+7-20Lines changed: 7 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -2380,9 +2380,9 @@ Only the following properties can be applied to the <code>::first-letter</code>
2380
2380
2381
2381
2382
2382
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>
2384
2384
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 initialletter, 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.
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
-
2432
2419
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.
2433
2420
2434
2421
@@ -2447,15 +2434,15 @@ Some styles of drop initials do not align with the first line of text. For examp
2447
2434
<pre>
2448
2435
2449
2436
p::first-letter {
2450
-
initial-letter: 2 3;
2437
+
initial-letter: 3 2;
2451
2438
}
2452
2439
2453
2440
</pre>
2454
2441
2455
2442
</div>
2456
2443
2457
2444
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.”
2459
2446
2460
2447
2461
2448
<div class="example">
@@ -2467,7 +2454,7 @@ If the first argument is ''1'', that creates a pure raised initial letter (often
2467
2454
<pre>
2468
2455
2469
2456
p::first-letter {
2470
-
initial-letter: 1 3;
2457
+
initial-letter: 3 1;
2471
2458
}
2472
2459
2473
2460
</pre>
@@ -2551,7 +2538,7 @@ An initial letter does not affect the position of its containing element. For
2551
2538
2552
2539
<figure>
2553
2540
<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>
0 commit comments