[css-text] white-space: pre-wrap must unconditionally hang trailing spaces
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: jfernandez, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
1- Load the attached case
Actual results:
The preserved trailing space got removed (actual.png)
Expected results:
The preserved trailing space must hang, so it should be visible thanks to the red background (expected.png)
| Reporter | ||
Comment 1•6 years ago
|
||
| Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
According to rule 4 at https://drafts.csswg.org/css-text-3/#white-space-phase-2, "If white-space is set to pre-wrap, the UA ... may also visually collapse the character advance widths of any that would otherwise overflow." I think that's what Firefox is doing here.
| Reporter | ||
Comment 4•6 years ago
|
||
Umm, that's true; it seems the spec accepts both behaviors.
Comment 5•6 years ago
|
||
OK, closing this as invalid -- it's not a bug after all, right? (Unless you think the spec should be changed to disallow this behavior, but that would be a discussion for the CSS WG first.)
| Reporter | ||
Comment 6•6 years ago
|
||
I agree on closing this bug.
Description
•