Skip to content

Commit f37e0b0

Browse files
committed
[css-text-3] Hanging characters are scrollable overflow. #2398. Closes PR #2744.
1 parent 18e77c3 commit f37e0b0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

css-text-3/Overview.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,12 +2133,18 @@ Cursive Scripts</h4>
21332133
does not <a>hang</a> at the end edge of a line.
21342134
At most one punctuation character may <a>hang</a> at each edge of the line.
21352135

2136-
<p>A <a lt=hang>hanging</a> punctuation mark is still enclosed inside its inline box
2137-
and participates in text justification:
2138-
its character advance width is just not measured when determining
2136+
<p>A <a lt=hang>hanging</a> punctuation mark
2137+
is still enclosed inside its parent inline box,
2138+
is still counted as part of the <a>scrollable overflow region</a> [[!CSS-OVERFLOW-3]],
2139+
and still participates in text justification:
2140+
its character advance is just not measured when determining
21392141
how much content fits on the line,
21402142
how much the line's contents need to be expanded or compressed for justification,
21412143
or how to position the content within the line box for text alignment.
2144+
Effectively, the <a>hanging</a> punctuation mark’s character advance
2145+
is re-interpreted as an additional negative margin
2146+
on the affected edge of its parent <a>inline box</a>;
2147+
the line is otherwise laid out as usual.
21422148

21432149
<p><dfn lt="stop or comma">Stops and commas</dfn> allowed to <a>hang</a> include:
21442150
<table class="data">

0 commit comments

Comments
 (0)