Skip to content

Commit 54f080f

Browse files
committed
[css-text-3] Hanging glyphs are ink overflow, but UA make make them scrollable overflow if that would be useful. w3c#4297
1 parent 45fc138 commit 54f080f

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
@@ -4835,9 +4835,8 @@ Cursive Scripts</h4>
48354835
(The interaction of this measurement and kerning is currently UA-defined;
48364836
the CSSWG <a href="https://github.com/w3c/csswg-drafts/issues/2397">welcomes advice</a> on this point.)
48374837

4838-
<p>A <a lt=hang>hanging</a> glyph
4839-
is still enclosed inside its parent inline box,
4840-
is still counted as part of the <a>scrollable overflow region</a> [[!CSS-OVERFLOW-3]],
4838+
<p>A <dfn><a lt=hang>hanging</a> glyph</dfn>
4839+
is still enclosed inside its parent inline box
48414840
and still participates in text justification:
48424841
its character advance is just not measured when determining
48434842
how much content fits on the line,
@@ -4847,6 +4846,13 @@ Cursive Scripts</h4>
48474846
is re-interpreted as an additional negative margin
48484847
on the affected edge of its parent <a>inline box</a>;
48494848
the line is otherwise laid out as usual.
4849+
An overflowing [=hanging glyph=] should typically be considered
4850+
[=ink overflow=] [[!CSS-OVERFLOW-3]]
4851+
so as to avoid creating unnecessary scrollbars,
4852+
but the UA may treat it as [=scrollable overflow=]
4853+
when the content is editable
4854+
or in other circumstances where treating it as [=scrollable overflow=]
4855+
would be useful to the user.
48504856

48514857
<wpt>
48524858
hanging-punctuation/hanging-scrollable-001.html

0 commit comments

Comments
 (0)