Closed Bug 1764328 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33610 - Set properly HasAuthorHighlightColors flag for links

Categories

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

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream error])

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

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

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

Set properly HasAuthorHighlightColors flag for links

Right now that flag was set for ComputedStyle of both visited
and unvisited links, even when only of them have styles set.

This patch adds a new flag "is_visited_highlight_colors"
so we can differentiate both cases, and only set
HasAuthorHighlightColors when appropriated.

This patch fixes the issue when HighlightInheritance flag
is enabled.

Bug: 1314629
Test: external/wpt/css/css-pseudo/selection-link-001.html
Test: external/wpt/css/css-pseudo/selection-link-002.html
Test: external/wpt/css/css-pseudo/selection-link-003.html
Change-Id: I0ee422bb7eb2098774dc829512f17d3d228f9556
Reviewed-on: https://chromium-review.googlesource.com/3581029
WPT-Export-Revision: e8eb0a2cbc0c82d9852c3685b970774f17d79c4a

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/050acbb38bcf
[wpt PR 33610] - Set properly HasAuthorHighlightColors flag for links, a=testonly
https://hg.mozilla.org/integration/autoland/rev/361b47a8eb60
[wpt PR 33610] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.