[wpt-sync] Sync PR 64504 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319173
Categories
(Core :: Layout: Text and Fonts, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64504 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64504
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319173
WebKit export from bug: [<!---->CSS]<!----> Support the white-<!---->space-<!---->trim:<!----> discard-<!---->inner value
<pre>
[CSS] Support the white-space-trim: discard-inner valueImplement the 'discard-inner' value of the CSS Text 4 'white-space-trim' property
(<a href="https://drafts.csswg.org/css-text-4/#white-space-trim)">https://drafts.csswg.org/css-text-4/#white-space-trim)</a> in the modern inline layout
path, behind the existing CSSWhiteSpaceTrimEnabled setting. This builds on the
'discard-before' / 'discard-after' support.'discard-inner' removes the collapsible white space at the start and end of the
element's own content -- i.e. immediately inside its edges. It maps onto the same
single forward pass over the inline items that already implements discard-before /
discard-after: a discard-inner inline box start arms the "discard the following
collapsible white space" state (like discard-after does at an end edge), and a
discard-inner inline box end discards the collapsible white space accumulated since
the last piece of real content (like discard-before does at a start edge). Inline
box boundaries remain transparent, so the trimming reaches across nested empty
boxes. As with the other values, only collapsible white space is affected:
preserved white space and non-collapsible characters (e.g. the ideographic space
U+3000) are left untouched.This covers discard-inner on inline boxes. The block-level facet of the spec --
trimming the collapsible white space at the start and end of each line of a block
container -- is a line-layout-time concern and is left as a follow-up.This includes the header fix from <a href="https://commits.webkit.org/325401@main.">https://commits.webkit.org/325401@main.</a>
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=319173">https://bugs.webkit.org/show_bug.cgi?id=319173</a>
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329730">https://bugs.webkit.org/show_bug.cgi?id=329730</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/317210@main">https://commits.webkit.org/317210@main</a>
</pre>
| Assignee | ||
Updated•6 days ago
|
| Assignee | ||
Comment 1•4 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=118335
| Assignee | ||
Comment 2•4 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 460 tests and 192 subtests
Status Summary
Firefox
OK : 29
PASS: 4[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 403[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 771[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 773[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 10[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 67[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 69[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
Chrome
FAIL: 1
Safari
PASS: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-text/white-space/break-spaces-008.html [wpt.fyi]:
FAIL - /css/css-text/white-space/break-spaces-051.html [wpt.fyi]:
FAIL - /css/css-text/white-space/break-spaces-052.html [wpt.fyi]:
FAIL - /css/css-text/white-space/break-spaces-before-first-char-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/break-spaces-before-first-char-005.html [wpt.fyi]:
FAIL - /css/css-text/white-space/break-spaces-before-first-char-006.html [wpt.fyi]:
FAIL - /css/css-text/white-space/break-spaces-before-first-char-015.html [wpt.fyi]:
FAIL - /css/css-text/white-space/control-chars-00C.html [wpt.fyi]:
FAIL - /css/css-text/white-space/control-chars-00D.html [wpt.fyi]:
FAIL - /css/css-text/white-space/eol-spaces-bidi-002.html [wpt.fyi]:
FAIL - /css/css-text/white-space/eol-spaces-bidi-003.html [wpt.fyi]:
FAIL - /css/css-text/white-space/eol-spaces-bidi-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/full-width-leading-spaces-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/hanging-whitespace-002.tentative.html [wpt.fyi]:
FAIL - /css/css-text/white-space/hanging-whitespace-003.tentative.html [wpt.fyi]:
FAIL - /css/css-text/white-space/hanging-whitespace-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/object-replacement-1.html [wpt.fyi]:
FAIL[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-text/white-space/object-replacement-2.html [wpt.fyi]:
FAIL[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-text/white-space/pre-line-051.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-line-052.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-line-with-space-and-newline.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-wrap-008.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-wrap-009.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-wrap-051.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-wrap-052.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-wrap-tab-005.html [wpt.fyi]:
FAIL - /css/css-text/white-space/pre-wrap-tab-006.html [wpt.fyi]:
FAIL - /css/css-text/white-space/seg-break-transformation-018.tentative.html [wpt.fyi]:
FAIL - /css/css-text/white-space/seg-break-transformation-019.tentative.html [wpt.fyi]:
FAIL - /css/css-text/white-space/tab-bidi-001.html [wpt.fyi]:
FAIL - /css/css-text/white-space/text-wrap-balance-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/text-wrap-balance-line-clamp-002.html [wpt.fyi]:
FAIL - /css/css-text/white-space/text-wrap-balance-line-clamp-003.html [wpt.fyi]:
FAIL - /css/css-text/white-space/text-wrap-balance-line-clamp-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/text-wrap-balance-line-clamp-007.html [wpt.fyi]:
FAIL - /css/css-text/white-space/textarea-pre-wrap-012.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-ideographic-space-001.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-ideographic-space-002.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-ideographic-space-break-spaces-005.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-ideographic-space-break-spaces-006.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-other-space-separators-001.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-other-space-separators-002.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-other-space-separators-003.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-other-space-separators-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-collapse-discard-001.xht [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-collapse-preserve-breaks-001.xht [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-intrinsic-size-001.html [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-pre-051.html [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-pre-052.html [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-pre-wrap-justify-004.html [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-trim-discard-inner-001.xht [wpt.fyi]:
FAIL - /css/css-text/white-space/white-space-trim-discard-inner.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text/white-space/ws-break-spaces-applies-to-006.html [wpt.fyi]:
FAIL - /css/css-text/white-space/ws-break-spaces-applies-to-007.html [wpt.fyi]:
FAIL - /css/css-text/white-space/ws-break-spaces-applies-to-008.html [wpt.fyi]:
FAIL - /css/css-text/white-space/ws-break-spaces-applies-to-009.html [wpt.fyi]:
FAIL - /css/css-text/white-space/ws-break-spaces-applies-to-010.html [wpt.fyi]:
FAIL - /css/css-text/white-space/ws-break-spaces-applies-to-011.html [wpt.fyi]:
FAIL - /css/css-text/white-space/ws-break-spaces-applies-to-014.html [wpt.fyi]:
FAIL - /css/css-text/white-space/trailing-space-before-block-in-inline-001.html [wpt.fyi]
- Trailing white space before a block level box collapses (nested):
FAIL - Trailing white space before a block level box collapses (sibling):
FAIL
- Trailing white space before a block level box collapses (nested):
- /css/css-text/white-space/white-space-collapse-002.html [wpt.fyi]
- RLM 2:
FAIL - RLM 3:
FAIL - RLM 4:
FAIL - RLM 5:
FAIL
- RLM 2:
- /css/css-text/white-space/white-space-intrinsic-size-021.html [wpt.fyi]
- .container > div 23:
FAIL - .container > div 47:
FAIL - .container > div 63:
FAIL - .container > div 79:
FAIL
- .container > div 23:
Comment 4•1 day ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9e64dd4f6541
https://hg.mozilla.org/mozilla-central/rev/7db8c4484da6
Description
•