Skip to content

Commit e82768c

Browse files
mregochromium-wpt-export-bot
authored andcommitted
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/c/chromium/src/+/3580511 Reviewed-by: Delan Azabani <[email protected]> Commit-Queue: Manuel Rego <[email protected]> Cr-Commit-Position: refs/heads/main@{#991442}
1 parent 1f6399f commit e82768c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

css/css-pseudo/target-text-008.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<meta name="assert" content="Checks that ::target-text pseudo-element can be applied on visited links.">
77
<link rel="match" href="target-text-008-ref.html">
88
<style>
9+
a::target-text {
10+
background: red;
11+
}
912
a:visited::target-text {
1013
color: lime;
1114
background: green;

0 commit comments

Comments
 (0)