Closed Bug 2092754 Opened 16 days ago Closed 12 days ago

[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)

task

Tracking

()

RESOLVED FIXED
162 Branch
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-inset

Widen 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>

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.