Skip to content

Commit d4c9c91

Browse files
committed
[css-inline-3] Make sunken initial letters align the same as raised ones. #5207
1 parent 7548f37 commit d4c9c91

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

css-inline-3/Overview.bs

+9-25
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ Alignment Within an Initial Letter Box</h4>
21622162
Initial Letter Positioning and Spacing</h3>
21632163

21642164
<h4 id="initial-letter-block-position">
2165-
Block-axis Positioning and Kerning</h4>
2165+
Block-axis Positioning</h4>
21662166

21672167
In the <a>block axis</a>, the <a>initial letter</a> is positioned
21682168
with respect to the [=line box=] in which it [=originates=]
@@ -2208,13 +2208,9 @@ Block-axis Positioning and Kerning</h4>
22082208
to shift further away from that edge.
22092209

22102210
<h4 id="initial-letter-inline-position">
2211-
Inline Positioning and Kerning</h4>
2211+
Inline Kerning</h4>
22122212

2213-
In the <a>inline axis</a>, the position of the inline letter
2214-
is given by matching its <a>inline-start</a> <a>margin edge</a>
2215-
with the <a>inline-start</a> edge of the line box.
2216-
2217-
However, if the <a>initial letter</a> is a non-atomic inline
2213+
If the <a>initial letter</a> is a non-atomic inline
22182214
with an [=automatic size|automatic=] [=inline size=] and
22192215
zero padding and borders,
22202216
it is negatively offset
@@ -2442,26 +2438,14 @@ Line Layout</h3>
24422438
<h4 id="initial-letter-inline-flow">
24432439
Inline Flow Layout: Alignment, Justification, and White Space</h4>
24442440

2445-
For a <a>raised initial</a>
2446-
no special consideration is given
2447-
for alignment, justification, or white space processing:
2448-
it is handled similar to any other inline-level content.
2449-
2450-
However, for a <a>sunken initial</a>
2451-
its inline-start edge is anchored to the inline-start edge
2452-
of the line box (after indentation)
2453-
and text alignment affects the remaining content of the line
2454-
in the remaining space,
2455-
without moving the <a>initial letter box</a> itself.
2456-
2457-
Note: The CSSWG was not aware of any reasonable use cases
2458-
for mixing non-start text alignment with dropped initial letters,
2459-
and this was the most sensible behavior proposed.
2460-
This behavior may be reconsidered if use cases require otherwise.
2441+
An [=initial letter box=] is handled similar to any other
2442+
[=inline-level=] content participating in its [=originating line box=],
2443+
including participation in alignment, justification,
2444+
and white space processing.
24612445

2462-
In addition, to ensure consistent alignment of all the impacted lines,
2446+
However, to ensure consistent alignment of all the impacted lines,
24632447
[=collapsible=] [=document white space=]
2464-
between the [=sunken initial=] and subsequent content on its [=originating line=]
2448+
between a [=sunken initial=] and subsequent content on its [=originating line=]
24652449
is collapsed away,
24662450
and any 'letter-spacing' or <a>justification opportunity</a>
24672451
that would normally be introduced by

0 commit comments

Comments
 (0)