Skip to content

Commit e625f72

Browse files
committed
[css-text-3] Require hanging, allow visual collapsing *in addition*, otherwise browsers will be inconsistent in how they center/end-align text (which is not OK) not just in how they handle overflowing spaces (which is OK)
1 parent f55dc74 commit e625f72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

css-text-3/Overview.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,9 @@ Characters and Letters</h3>
766766
at the end of a line:
767767
<ul>
768768
<li>If 'white-space' is set to ''pre-wrap'',
769-
the UA must either <a>hang</a> this sequence
770-
or visually collapse the character advance widths
771-
of any that overflow
772-
such that they don't take up space in the line.
769+
the UA must <a>hang</a> this sequence.
770+
It may also visually collapse the character advance widths
771+
of any that would otherwise overflow.
773772

774773
Note: Hanging the white space rather than collapsing it
775774
allows users to see the space when selecting or editing text.

0 commit comments

Comments
 (0)