Closed
Bug 1489445
Opened 7 years ago
Closed 7 years ago
[wpt-sync] Sync PR 12894 - Reland: A leading white-space should break before handling overflow
Categories
(Core :: CSS Parsing and Computation, enhancement, P4)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 12894 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/12894
Details from upstream follow.
Javier Fernandez <jfernandez@igalia.com> wrote:
> Reland: A leading white-space should break before handling overflow
>
> This is basically a reland of 6ea2a2e7f3ef01e0c98424ce272a732ade92ad1a
> but with some changes to avoid regressions like the one reported in
> issue #866109.
>
> The key to keep the behavior we want is to change the
> RewindToMidWordBreak function so it only looks for previous breaking
> opportunities if the current word_measurement's length is longer that 1
> single character.
>
> Original change's description:
> > [css-text] A leading white-space should break before handling overflow
> >
> > Leading white-spaces are indeed breaking opportunities that should
> > prevent, if there are no other css properties forcing it, breaking text
> > in the middle of a word when honoring the word-wrap/overflow-wrap CSS
> > property.
> >
> > We are doing so if the leading white-space sequence is longer than 1
> > character, but when we have a single leading white-space, we are missing
> > that breaking opportunity and we may lead to cases, like the one
> > described in the bug.
> >
> > However, this breaking opportunity should be considered together
> > with other provided by the word-break CSS property (eg, break-word or
> > break-all).
> >
> > There is a discussion [1] in the CSS WG github about this issue, which
> > provides an interoperability analysis of a few cases where a single
> > leading white-space character may produce different results, depending
> > on the browser and the combination of line-breaking properties.
> >
> > [1] https://github.com/w3c/csswg-drafts/issues/2907
> >
> > Bug: 854624
> > Change-Id: I49ec8282e899a32990662c104b48cab04057b909
> > Reviewed-on: https://chromium-review.googlesource.com/1130515
> > Commit-Queue: Javier Fernandez <jfernandez@igalia.com>
> > Reviewed-by: Koji Ishii <kojii@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#575596}
>
> Bug: 854624
> Change-Id: I1cc0f55050d54ea1e76c655cf6b3ef8bcc0b0e2c
> Reviewed-on: https://chromium-review.googlesource.com/1209745
> WPT-Export-Revision: 6658be4f5045af66fdb2c400528a234da4bbb4bf
| Assignee | ||
Updated•7 years ago
|
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=96f30eee4cc94a74981cda58519899c41bdce8d7
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=6ae298793266ef99fe2914476e39baf966f46d6d
| Assignee | ||
Comment 5•7 years ago
|
||
| Assignee | ||
Comment 6•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=1cf214c88940321e6b7fec1befb37ebaa4b9306c
| Assignee | ||
Comment 7•7 years ago
|
||
| Assignee | ||
Comment 8•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=207f6b18f96c42c98c3391deef3eb9df52f3373f
| Assignee | ||
Comment 9•7 years ago
|
||
| Assignee | ||
Comment 10•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=1dbcefc58bfe5ab32879e53123273b6526cda888
| Assignee | ||
Comment 11•7 years ago
|
||
| Assignee | ||
Comment 12•7 years ago
|
||
| Assignee | ||
Comment 13•7 years ago
|
||
| Assignee | ||
Comment 14•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=63caeabb9979734e17ab4de1dbe5bbea2bae1bf4
| Assignee | ||
Comment 15•7 years ago
|
||
Ran 5 tests
PASS : 2
FAIL : 3
New tests that have failures or other problems:
/css/css-text/overflow-wrap/overflow-wrap-break-word-004.html: FAIL
/css/css-text/word-break/word-break-break-all-010.html: FAIL
/css/css-text/word-break/word-break-break-all-011.html: FAIL
Comment 16•7 years ago
|
||
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/12ab47127613
[wpt PR 12894] - [css-text] A leading white-space should break before handling overflow, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/b08a738d556b
[wpt PR 12894] - Update wpt metadata, a=testonly
Comment 17•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/12ab47127613
https://hg.mozilla.org/mozilla-central/rev/b08a738d556b
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•