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
Copy file name to clipboardExpand all lines: css-inline/Overview.bs
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -249,7 +249,7 @@ Drop Initial</h4>
249
249
A <dfn>dropped initial</dfn> (or “drop cap”) is a larger-than-usual letter at the start of a paragraph, with a baseline at least one line lower than the first baseline of the paragraph. The size of the drop initial is usually indicated by how many lines it occupies. Two- and three-line drop initials are very common.
250
250
251
251
<figure>
252
-
<img alt="3-line drop cap with E Acute" src="Dropcap-E-acute-3line.png" width="480">
252
+
<img alt="3-line drop cap with E Acute" src="images/Dropcap-E-acute-3line.png" width="480">
253
253
<p class="caption">Three-line drop initial with E acute. Since the cap-height of the drop initial aligns with the cap-height of the main text, the accent extends above the paragraph.</p>
254
254
</figure>
255
255
@@ -258,19 +258,19 @@ The exact size and position of a <a>dropped initial</a> depends on the alignment
258
258
259
259
260
260
<figure id="f2">
261
-
<img src="Dropcap-lines.png" width="600" alt="drop cap showing alignment"/>
261
+
<img src="images/Dropcap-lines.png" width="600" alt="drop cap showing alignment"/>
262
262
<p class="caption">Two-line drop cap showing baselines (green lines), cap-height (red line), and ascender (cyan line).</p>
263
263
</figure>
264
264
265
265
The alignment constraints for drop initials depend on the writing system. In ideographic scripts, the initial letter extends from the <a>block-start</a> edge of the first line to the <a>block-end</a> edge of the Nth line.
<p class="caption">Devangari <a>initial letter</a> aligned with hanging baseline. Alignment points shown in red.</p>
286
286
</figure>
287
287
@@ -292,7 +292,7 @@ Sunken Initial Letters</h4>
292
292
Some styles of drop initials do not align with the first line of text. A <dfn>sunken initial</dfn> (or “sunken cap”) both sinks below the first baseline, and extends above the first line of text.
293
293
294
294
<figure>
295
-
<img src="SunkenCapA.png" width="480" alt="sunken drop initial"/>
295
+
<img src="images/SunkenCapA.png" width="480" alt="sunken drop initial"/>
296
296
<p class="caption">Sunken cap. The letter drops two lines, but is the size of a three-line initial letter.</p>
297
297
</figure>
298
298
@@ -303,7 +303,7 @@ A <dfn>raised initial</dfn> (often called a “raised cap” or “stick-up cap
<dd>Represents a <a>raised initial</a> 3 lines high, 1 line deep.
379
379
380
-
<img src="InitialLetter31.png" alt="3 lines high, 1 line deep" width="360"/>
380
+
<img src="images/InitialLetter31.png" alt="3 lines high, 1 line deep" width="360"/>
381
381
</dl>
382
382
383
383
</div>
@@ -473,7 +473,7 @@ If an initial letter is too long to fit on one line, it wraps (according to the
473
473
474
474
475
475
<figure>
476
-
<img alt="multi-line drop cap" src="Multi-line-initial.png" width="300">
476
+
<img alt="multi-line drop cap" src="images/Multi-line-initial.png" width="300">
477
477
<p class="caption">Drop cap extends to two lines.</p>
478
478
</figure>
479
479
@@ -493,7 +493,7 @@ Sizing Initial Letters</h3>
493
493
494
494
495
495
<figure>
496
-
<img src="InitialCapEquation.png" width="604" alt="Equation to calcuate drop initial font size"/>
496
+
<img src="images/InitialCapEquation.png" width="604" alt="Equation to calcuate drop initial font size"/>
497
497
</figure>
498
498
499
499
<!--
@@ -534,7 +534,7 @@ Space Around Initial Letters</h3>
534
534
The glyph(s) of an initial letter do not always fit within the specified sink. For example, if an initial letter has a descender, it could crash into the (n+1)th line of text. This is not desirable.
535
535
536
536
<figure>
537
-
<img alt="3-line drop cap with J, with descender crashing into fourth line of text" src="Dropcap-J-3line-crash.png" width="480">
537
+
<img alt="3-line drop cap with J, with descender crashing into fourth line of text" src="images/Dropcap-J-3line-crash.png" width="480">
538
538
<p class="caption">Incorrect: three-line initial letter with descender</p>
539
539
</figure>
540
540
@@ -551,7 +551,7 @@ Specifically, for non-atomic initial letters, the content box of the element is
551
551
The margin box of the initial letter is then made an exclusion area for subsequent text.
552
552
553
553
<figure>
554
-
<img alt="3-line drop cap with J, but four-line exclusion" src="Dropcap-J-3line-exclude.png" width="480">
554
+
<img alt="3-line drop cap with J, but four-line exclusion" src="images/Dropcap-J-3line-exclude.png" width="480">
555
555
<p class="caption">Correct: text excluded around glyph bounding box</p>
556
556
</figure>
557
557
@@ -571,7 +571,7 @@ the UA should optically kern the first line of text into the <a>initial letter</
571
571
as necessary to maintain perceptual continuity of the text.
572
572
573
573
<figure>
574
-
<img src="OpticalKerning.png" alt="optical kerning in the presence or absence of a space after the initial letter" width="200"/>
574
+
<img src="images/OpticalKerning.png" alt="optical kerning in the presence or absence of a space after the initial letter" width="200"/>
575
575
<p class="caption">In the top paragraph, the initial letter "A" has a word space after it. In the middle paragraph, the initial letter "A" is part of a word. In this case, the first line of text should be kerned into the initial letter's area as shown in the bottom paragraph.</p>
576
576
</figure>
577
577
@@ -585,7 +585,7 @@ An initial letter does not affect the position of its containing element. For
585
585
586
586
587
587
<figure>
588
-
<img src="initial-letter-drop-para-compare.png" alt="raised cap para after normal para" width="600"/>
588
+
<img src="images/initial-letter-drop-para-compare.png" alt="raised cap para after normal para" width="600"/>
589
589
<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>
590
590
</figure>
591
591
@@ -598,7 +598,7 @@ Short paragraphs with initial letters</h4>
598
598
A paragraph with an initial letter can have fewer lines of text than the initial letter occupies. In this case, the initial letter’s top alignment is still honored, and its exclusion area continues into any subsequent blocks. This forces the subsequent inline-level content to wrap around the initial letter—exactly as if that block's text were part of its own containing block. (This is similar to how floats exclude content in subsequent block boxes.)
599
599
600
600
<figure>
601
-
<img src="initial-letter-short-para.png" alt="short para with initial letter" width="600"/>
601
+
<img src="images/initial-letter-short-para.png" alt="short para with initial letter" width="600"/>
602
602
<p class="caption">The red text is a short paragraph with an initial letter. Note the subsequent paragraph wraps around the initial letter just as text in the paragraph with the initial letter does.</p>
603
603
</figure>
604
604
@@ -608,7 +608,7 @@ or specifies 'clear' in the initial letter’s containing block’s start direct
608
608
then it must clear the previous block’s initial letter.
609
609
610
610
<figure>
611
-
<img src="initial-letter-short-para-initial.png" alt="short para with initial letter followed by para with initial" width="600"/>
611
+
<img src="images/initial-letter-short-para-initial.png" alt="short para with initial letter followed by para with initial" width="600"/>
612
612
<p class="caption">The red text is a short paragraph with an initial letter. The subsequent paragraph clears because it also has an initial letter.</p>
0 commit comments