active-selection-004-manual.html (1272B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Pseudo-Elements Test: active selection and text-decoration (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 should" name="flags"> 12 13 <style> 14 div 15 { 16 font-size: 300%; 17 } 18 19 div::selection 20 { 21 text-decoration: fuchsia underline dotted; 22 } 23 </style> 24 25 <p>Instructions: Select a few or all characters from the words "Text sample" using a variety of methods: 26 27 <ul> 28 <li>Select by dragging (leftwardedly or rightwardedly) the mouse across the characters. 29 <li>Select by using shift + keyboard arrows when keyboard navigation / caret browsing is enabled. 30 <li>Double click a word to select it. 31 <li>Triple click the text to select it. 32 </ul> 33 34 <p>Test passes if, in every case, the selected glyphs of "Text sample" are underlined with a fuchsia dotted line <em>and</em> if the background color and color of the selected text are the same as when selecting text from these instructions. 35 36 <div>Text sample</div>