selection-link-001-ref.html (585B)
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" has a green color and white background, and "unvisited" is selected with the default colors.</p> 13 <main> 14 <span class="green">visited</span> 15 <span>unvisited</span> 16 </main> 17 18 <script>selectNodeContents(document.querySelector("main"));</script>