[wpt-sync] Sync PR 64609 - 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 64609 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64609
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.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=322441">https://bugs.webkit.org/show_bug.cgi?id=322441</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=119719
| Assignee | ||
Comment 2•16 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL: 1
Chrome
PASS: 1
Safari
PASS: 1
Links
Details
Firefox-only Failures
New Tests That Don't Pass
- /css/css-text-decor/text-decoration-inset-percentage-slice.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:PASS)
Comment 4•12 days ago
|
||
| bugherder | ||
Description
•