[wpt-sync] Sync PR 64655 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322441
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 64655 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64655
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322441
WebKit export from bug: [<!---->css-<!---->text-<!---->decor-<!---->4]<!----> Add support for percentages to text-<!---->decoration-<!---->inset
<pre>
[css-text-decor-4] Support percentages in text-decoration-insetWiden text-decoration-inset from <length>{1,2} to <length-percentage>{1,2}, per
the CSSWG resolution on csswg-drafts#8403.A percentage resolves against the inline size of the decorating box for box-decoration-break: slice, or of the individual box fragment for clone.
Since a sliced box's inline size spans all of its fragments, TextBoxPainter now sums them (DecoratingBoxFragmentInlineSizes) instead of measuring the fragment being painted.
That sum also gives the inline size preceding/following this fragment, so a trimming inset larger than one fragment now carries over
into the next - a middle fragment can be trimmed, or vanish, without holding either endpoint of the box.Ink overflow cannot resolve these percentages while building a line, because the basis is not known until every fragment exists.
InlineContentBuilder therefore collects the decorating boxes whose inset may resolve negative while it walks the display boxes, and
adds the outward overhang in a follow-up pass over the finished lines.
StyleDifference compares insets with no basis, where two different percentages would look equal, so a change involving one now requires layout outright.This includes the references and spec links from <a href="https://commits.webkit.org/325582@main.">https://commits.webkit.org/325582@main.</a>
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=322441">https://bugs.webkit.org/show_bug.cgi?id=322441</a>
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329910">https://bugs.webkit.org/show_bug.cgi?id=329910</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/320052@main">https://commits.webkit.org/320052@main</a>
</pre>
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Comment 1•16 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119963
| Assignee | ||
Comment 2•15 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 384 tests and 10 subtests
Status Summary
Firefox
OK : 48
PASS: 9[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1374[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1677[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] 1678[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 1679[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 10[GitHub] 11[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 33[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 34[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-linux2404-64-debug, Gecko-linux2404-64-opt]
Chrome
PASS: 9
FAIL: 1
Safari
PASS: 10
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /css/css-text-decor/text-decoration-inset-percentage-clone.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-inset-percentage-negative-multiline.html [wpt.fyi]:
FAIL
New Tests That Don't Pass
- /css/css-text-decor/invalidation/selection-pseudo-with-decoration-invalidation-001.html [wpt.fyi]:
FAIL - /css/css-text-decor/invalidation/selection-pseudo-with-decoration-invalidation-002.html [wpt.fyi]:
FAIL - /css/css-text-decor/invalidation/text-decoration-thickness.html [wpt.fyi]:
PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[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] - /css/css-text-decor/text-decoration-color-selection-pseudo-01.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-color.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-decorating-box-001.html [wpt.fyi]:
FAIL[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-linux2404-64-debug,Gecko-linux2404-64-opt],PASS[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-text-decor/text-decoration-inset-030.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-inset-percentage-clone.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-equivalence.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative-grow.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative-incremental.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative-layer.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative-multiline.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative-propagated.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative-repaint.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-negative.html [wpt.fyi]:
FAIL[GitHub],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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-padding.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-text-decor/text-decoration-inset-percentage-slice.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-propagation-display-contents.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-ink-upright-001.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-ink-upright-002.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-001.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-002.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-003.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-004.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-005.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-006.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-007.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-008.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-skip-spaces-009.html [wpt.fyi]:
FAIL - /css/css-text-decor/text-decoration-subelements-004.html [wpt.fyi]:
FAIL - /css/css-text-decor/parsing/text-decoration-skip-spaces-computed.html [wpt.fyi]
- Property text-decoration-skip-spaces value 'none':
FAIL - Property text-decoration-skip-spaces value 'all':
FAIL - Property text-decoration-skip-spaces value 'start':
FAIL - Property text-decoration-skip-spaces value 'end':
FAIL - Property text-decoration-skip-spaces value 'start end':
FAIL
- Property text-decoration-skip-spaces value 'none':
- /css/css-text-decor/parsing/text-decoration-skip-spaces-valid.html [wpt.fyi]
- e.style['text-decoration-skip-spaces'] = "none" should set the property value:
FAIL - e.style['text-decoration-skip-spaces'] = "all" should set the property value:
FAIL - e.style['text-decoration-skip-spaces'] = "start" should set the property value:
FAIL - e.style['text-decoration-skip-spaces'] = "end" should set the property value:
FAIL - e.style['text-decoration-skip-spaces'] = "start end" should set the property value:
FAIL - e.style['text-decoration-skip-spaces'] = "end start" should set the property value:
FAIL
- e.style['text-decoration-skip-spaces'] = "none" should set the property value:
Tests Disabled in Gecko Infrastructure
- /css/css-text-decor/invalidation/text-decoration-thickness.html [wpt.fyi]:
PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[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]
Comment 4•12 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/40f84d443b3e
https://hg.mozilla.org/mozilla-central/rev/f528ffef1ced
Description
•