Closed Bug 2092958 Opened 19 days ago Closed 16 days ago

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

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 64667 into mozilla-central (this bug is closed when the sync is complete).

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

Antti Koivisto <antti@apple.com> wrote:

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

WebKit export from bug: REGRESSION (<!---->318779@<!---->main)<!---->:<!----> Text selection highlight is not visible for github.<!---->com

<pre>
REGRESSION (<a href="https://commits.webkit.org/318779@main">318779@main</a>): Text selection highlight is not visible for github.com

GitHub sets only custom properties in :root::selection. Since <a href="https://commits.webkit.org/318779@main">318779@main</a> highlight pseudo-element styles
inherit through the highlight cascade, so every element on the page gets a ::selection style. We used
the colors of any ::selection style we found, here a transparent background, so the selection was invisible.

Implement paired defaults:

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

The UA default highlight colors are now used unless color or background-color has a cascaded value from
the author origin, or inherits one through the highlight cascade. A new style bit records this.

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

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core

CI Results

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

Total 40 tests and 12 subtests

Status Summary

Firefox

OK : 14
PASS: 1[GitHub] 82[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 102[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] 52[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: 2

Safari

PASS: 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

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