active-selection-001-manual.html (1148B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Pseudo-Elements Test: active selection and color (basic)</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="https://www.w3.org/TR/css-pseudo-4/#highlight-selectors"> 9 <link rel="help" href="https://www.w3.org/TR/css-pseudo-4/#highlight-styling"> 10 11 <meta content="interact" name="flags"> 12 13 <style> 14 div 15 { 16 color: red; 17 font-size: 300%; 18 } 19 20 div::selection 21 { 22 color: green; 23 } 24 </style> 25 26 <p>Instructions: Select a few or all characters from the words "Text sample" using a variety of methods: 27 28 <ul> 29 <li>Select by dragging (leftwardedly or rightwardedly) the mouse across the characters. 30 <li>Select by using shift + keyboard arrows when keyboard navigation / caret browsing is enabled. 31 <li>Double click a word to select it. 32 <li>Triple click the text to select it. 33 </ul> 34 35 <p>Test passes if, in every case, the selected characters become green <em>and</em> if there is no background color for the characters selection. 36 37 <div>Text sample</div>