Skip to content

Commit 138bf15

Browse files
committed
[css-inline-3] Bikeshed fixes, better cross-references.
1 parent ce62a3f commit 138bf15

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

css-inline-3/Overview.bs

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,18 @@ Creating Initial Letters: the 'initial-letters' property</h3>
455455

456456
<dt><dfn><<number>></dfn>
457457
<dd>
458-
This first argument defines the size of the initial letter
458+
This first argument defines the <dfn dfn lt="initial letter size">size</a>
459+
of the initial letter
459460
in terms of how many lines it occupies.
460461
Values less than one are invalid.
461462
462463
<dt><dfn><<integer>></dfn>
463464
<dd>
464465
This optional second argument
465-
defines the number of lines the initial letter should <dfn>sink</dfn>.
466+
defines the number of lines the initial letter should
467+
<dfn dfn lt="initial letter sink" local-lt="sink">sink</dfn>.
468+
A value of ''1'' indicates a <a>raised initial</a>;
469+
values greater than ''1'' indiciate a <a>sunken initial</a>.
466470
Values less than one are invalid.
467471
If omitted, it duplicates the first argument,
468472
floored to the nearest positive whole number.
@@ -574,7 +578,7 @@ Applicability</h4>
574578

575579
Note: The 'initial-letters' property cannot apply to any element
576580
whose 'float' is not ''float/none'' or 'position' is not ''static'',
577-
because these values cause its 'display' to compute to ''block''.
581+
because these values cause its 'display' to compute to ''display/block''.
578582

579583
The effect of the 'initial-letters' property is undefined
580584
on children of <a>ruby</a> base container boxes
@@ -1125,21 +1129,24 @@ Initial Letter Wrapping: the 'initial-letters-wrap' property</h3>
11251129
</div>
11261130

11271131
<div class="example">
1132+
<pre>
1133+
p::first-letter {
1134+
initial-letters: 3;
1135+
initial-letters-wrap: all;
1136+
}
1137+
</pre>
1138+
11281139
<img src="images/V-wraparound.png" width="600"
11291140
alt="text wrapping around dropcap V">
1130-
</div>
11311141

1132-
<div class="example">
11331142
<img src="images/P-wraparound.png" width="600"
11341143
alt="text wrapping around dropcap P">
1135-
</div>
11361144

1137-
<div class="example">
11381145
<img src="images/W-wraparound.png" width="600"
11391146
alt="text wrapping around dropcap W">
11401147
</div>
11411148

1142-
<h3 id="initial-letter-indentation">
1149+
<h3 id="initial-letter-line-layout">
11431150
Line Layout</h3>
11441151

11451152
An <a>initial letter box</a> is considered in-flow in its <a>block formatting context</a>,
@@ -1151,12 +1158,12 @@ Line Layout</h3>
11511158
<h4 id="initial-letter-inline-flow">
11521159
Inline Flow Layout: Alignment and Justification</h4>
11531160

1154-
For a raised <a>initial letter box</a> (<a>sink</a> of ''1'')
1161+
For a <a>raised initial</a>
11551162
no special consideration is given for alignment and justification:
11561163
it is treated similar to any other inline-level content.
11571164

1158-
However, if the <a>initial letter box</a> is sunk by more than ''1'',
1159-
then its inline-start edge is anchored to the inline-start edge
1165+
However, for a <a>sunken initial</a>
1166+
its inline-start edge is anchored to the inline-start edge
11601167
of the line box (after indentation)
11611168
and text alignment affects the remaining content of the line
11621169
in the remaining space,
@@ -1170,11 +1177,11 @@ Inline Flow Layout: Alignment and Justification</h4>
11701177
In addition, to ensure consistent alignment of all the impacted lines,
11711178
any 'letter-spacing' or <a>justification opportunity</a>
11721179
that would normally be introduced by
1173-
the juxtaposition of the contents of a sunken <a>initial letter</a>
1180+
the juxtaposition of the contents of a <a>sunken initial</a>
11741181
and the subsequent contents of the line
11751182
is suppressed.
11761183
(Note that this does not affect 'word-spacing' or
1177-
the <a>justification opportunity</a> introduced by a <a>word separator</a>
1184+
the <a>justification opportunity</a> introduced by a <a spec=css-text>word separator</a>
11781185
because that space is provided by the <a>typographic character unit</a> alone
11791186
and not by its juxtaposition with an adjacent character.)
11801187

0 commit comments

Comments
 (0)