selection-link-002-ref.html (584B)
1 <!DOCTYPE html> 2 <meta charset="utf-8" /> 3 <title>CSS Pseudo-Elements Test: Reference file</title> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 5 <script src="support/selections.js"></script> 6 <style> 7 .green::selection { 8 color: green; 9 } 10 </style> 11 12 <p>Test passes if when selecting the content "visited" is selected with the default colors and "unvisited" has a green color and white background.</p> 13 <main> 14 <span>visited</span> 15 <span class="green">unvisited</span> 16 </main> 17 18 <script>selectNodeContents(document.querySelector("main"));</script>