Closed Bug 2086875 Opened 1 month ago Closed 22 days ago

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

Categories

(Core :: Layout: Generated Content, Lists, and Counters, 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 64107 into mozilla-central (this bug is closed when the sync is complete).

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

Antti Koivisto <antti@apple.com> wrote:

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

WebKit export from bug: Highlight color should inherit as StyleColor

<pre>
Highlight color should inherit as StyleColor

Normally currentcolor in color property resolves against the inherited parent style and can be fully resolved
during style building. However highlight pseudo-elements have special behavior where the inheritance
chain goes via the parent element's highlight style but currentcolor is resolved against the
originating element. To do this correctly we need to keep around unresolved (StyleColor) version of
the color property value we normally don't need. This field can also later be used to resolve currentcolor
against the lower highlight layer at paint time.

<a href="https://drafts.csswg.org/css-pseudo-4/#highlight-cascade">https://drafts.csswg.org/css-pseudo-4/#highlight-cascade</a>

To avoid complicating the regular paths this patch adds colorForHighlight as a separate rare data field.

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

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 38 tests

Status Summary

Firefox

OK : 1[GitHub] 14[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 82[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 101[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]
FAIL: 1[GitHub] 46[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 51[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

OK : 1
PASS: 1
FAIL: 1

Safari

OK : 1
PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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