Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-pseudo/target-text-text-decoration-currentcolor.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Pseudo-Elements Test: ::target-text text-decoration with currentColor</title> <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#selectordef-target-text"> <link rel="match" href="target-text-text-decoration-currentcolor-ref.html"> <meta name="assert" content="This test checks that ::target-text text-decoration-color defaults to currentColor."> <style> ::target-text { color: green; text-decoration: overline; background-color: transparent; } #target { font-size: 50px; } </style> <p>The test passes if the text below has a green overline.</p> <p id="target">Target text</p> <script> location.href = "#:~:text=Target text"; </script>
/css/css-pseudo/target-text-text-decoration-currentcolor-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Pseudo-Elements Test: Reference for ::target-text text-decoration with currentColor</title> <style> #target { font-size: 50px; color: green; text-decoration: overline; } </style> <p>The test passes if the text below has a green overline.</p> <p id="target">Target text</p>