Closed Bug 2089342 Opened 17 days ago Closed 9 days ago

[wpt-sync] Sync PR 64378 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=316601

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64378 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64378
Details from upstream follow.

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=316601

WebKit export from bug: Underline is drawn twice on a \<<!---->sup><!---->

<pre>
Underline is drawn twice on a <sup>

<div style="text-decoration: underline green">
A<span style="text-decoration: overline green; vertical-align: top">B</span>
</div>

The underline should be one line under both "A" and the superscript "B".
Instead "B" got a second underline at its raised position, so the line
looked broken in two.

Each text box paints its slice of the decorations from its decorating-box
ancestors. The span counts as a decorating box for its own overline, but the
set of lines it painted came from text-decoration-line-in-effect, which also
includes the underline propagated from the div. So the raised "B" painted that
underline again at its own offset, on top of the one the root inline box
already draws at the baseline.

A non-root decorating box now keeps only the decorations it originates (its own
text-decoration-line); a propagated underline or overline it does not originate
is dropped, unless a marked text genuinely overrides it. The root inline box
and <a>/<font> keep the in-effect decorations. Per css-text-decor a
vertical-align'd inline takes its parent's underline position.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=316601">https://bugs.webkit.org/show_bug.cgi?id=316601</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/315220@main">https://commits.webkit.org/315220@main</a>
</pre>

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 367 tests

Status Summary

Firefox

OK : 48
PASS: 1[GitHub] 9[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1374[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1661[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] 1663[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1664[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 11[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 31[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 32[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 33[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]

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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