Closed Bug 1595917 Opened 6 years ago Closed 6 years ago

[css-text] white-space: pre-wrap must unconditionally hang trailing spaces

Categories

(Core :: Layout: Text and Fonts, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jfernandez, Unassigned)

Details

Attachments

(3 files)

Attached file pre-wrap-issue-2.html

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)

Attached image Actual result
Attached image Expected result

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.

Umm, that's true; it seems the spec accepts both behaviors.

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.)

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core
Resolution: --- → INVALID

I agree on closing this bug.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: