Skip to content

Commit 634a2c5

Browse files
committed
[css-inline-3] initial letter is aligned using its top point when size < sink. w3c#5329
1 parent 7bde09f commit 634a2c5

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,18 +2151,34 @@ Block-axis Positioning and Kerning</h4>
21512151

21522152
In the <a>block axis</a>, the <a>initial letter</a> is positioned
21532153
with respect to the [=line box=] in which it [=originates=]
2154-
as required to satisfy its <a>under</a> alignment point ('initial-letter-align')
2155-
at its specified [=initial letter sink|sink=] ('initial-letter'),
2156-
i.e. it is positioned
2154+
as required to satisfy its alignment ('initial-letter-align')
2155+
and specified [=initial letter sink|sink=] ('initial-letter'):
2156+
2157+
* If its [=initial letter size|size=] is greater than or equal to
2158+
its [=initial letter sink|sink=],
2159+
[=the initial letter=] is positioned
2160+
to satisfy its <a>under</a> alignment,
2161+
and then shifted by
2162+
([=initial letter sink|sink=] - 1) &times; 'line-height' of [=containing block=]
2163+
towards the [=containing block=]’s [=block end=].
2164+
2165+
* If its [=initial letter size|size=] is less than
2166+
its [=initial letter sink|sink=],
2167+
[=the initial letter=] is positioned
2168+
to satisfy its <a>over</a> alignment.
2169+
2170+
Note: An [=initial letter=] is essentially positioned
21572171
such that it would sink the number of lines
21582172
specified by 'initial-letter'’s second argument
21592173
and align to the requisite <a>under</a> alignment point
21602174
if it was assumed that its containing block held only
21612175
the <a>initial letter</a> itself
21622176
followed by an infinite sequence of plain text
21632177
as the direct contents of its <a>root inline box</a>.
2178+
Its position is not affected by line height inconsistencies
2179+
introduced by the contents of the impacted line boxes.
21642180

2165-
<figure>
2181+
<figure>
21662182
<img src="images/infinite-text.png" width="300"
21672183
alt="Constant-sized text underlay shows how initial letter alignment
21682184
is not affected by the content of the spanned lines.">

0 commit comments

Comments
 (0)