highlight-styling-003.html (968B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Pseudo-Elements Test: highlight styling: compat stroke/fill properties</title> 4 <link rel="author" title="Delan Azabani" href="mailto:dazabani@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#highlight-styling"> 6 <link rel="match" href="highlight-styling-003-ref.html"> 7 <meta name="assert" value="This test verifies that prefixed properties are ignored in ::selection."> 8 <script src="support/selections.js"></script> 9 <link rel="stylesheet" href="support/highlights.css"> 10 <style> 11 main { 12 font-size: 7em; 13 margin: 0.5em; 14 } 15 main::selection { 16 color: white; 17 -webkit-text-fill-color: yellow; 18 -webkit-text-stroke-color: green; 19 -webkit-text-stroke-width: 4px; 20 } 21 </style> 22 <p>Test passes if the text below is white (invisible). 23 <main class="highlight_reftest">quick</main> 24 <script>selectNodeContents(document.querySelector("main"));</script>