[Webkit-unassigned] [Bug 247481] New: white-space: break-spaces sometimes treats element boundaries before spaces as breaking opportunities
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 4 03:26:38 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247481
Bug ID: 247481
Summary: white-space: break-spaces sometimes treats element
boundaries before spaces as breaking opportunities
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: abotella at igalia.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Created attachment 463398
--> https://bugs.webkit.org/attachment.cgi?id=463398&action=review
Test case for this bug
The `white-space: break-spaces` CSS property should not hang or collapse spaces, and should only allow breaking after spaces rather than before them. But it seems like in Webkit, in some cases an element boundary before a space can collapse or hang the space, even when that element does not change the `white-space` property with respect to its parent.
In the attachment test, notice that there is no space at the start of the second line before "BB", which means either the space after "AAAA" overflowed, or it collapsed or hanged. However, "C " is allowed to overflow and doesn't here, so the space does not seem to be considered for line-breaking purposes, when it should.
This is an issue considered for the "web compat" part of Interop 2023 (https://github.com/web-platform-tests/interop/issues/187), which was initially reported as a bug in Chromium before I noticed Webkit also has a related bug.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221104/8f6fa726/attachment.htm>
More information about the webkit-unassigned
mailing list