Closed Bug 1764271 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33602 - Fix test for highlight pseudos and visited links

Categories

(Core :: Layout: Generated Content, Lists, and Counters, task, P4)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Manuel Rego Casasnovas <rego@igalia.com> wrote:

Fix test for highlight pseudos and visited links

In r990326 we added a test for visited links on highlight pseudos,
but it was wrong.

Browsers use the alpha channel from the unvisited styles,
so by default the unvisited style background is transparent,
so you get a transparent background for the visited styles too
(even if you specify something different for them).

We're adding a solid background color to the unvisited style,
so the visited background color is used.

Bug: 1314629
Change-Id: I5ebb789388dc239b09f87a9e21ac5fd53f1113fa
Reviewed-on: https://chromium-review.googlesource.com/3580511
WPT-Export-Revision: 849a015376ae4e913ccf99049dce77cf18508438

PR 33602 applied with additional changes from upstream: 62c79d1cbb66ea88e44936b1c6082a55b9eaa59c
Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/68e0be860660
[wpt PR 33602] - Fix test for highlight pseudos and visited links, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.