tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

active-selection-002-manual.html (1528B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Pseudo-Elements Test: active selection and background-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      background-color: red;
     17      color: aqua;
     18      display: inline;
     19      font-size: 300%;
     20    }
     21 
     22  div::selection
     23    {
     24      background-color: green;
     25    }
     26 
     27  /*
     28  Chromium 77.0.3855.0 creates a background-color #334C00 or rgb(51, 76, 0)
     29  and not a green (#008000 or rgb(0, 128, 0)) background color.
     30 
     31  Issue 1018450: background-color of ::selection should be painted as specified
     32  https://bugs.chromium.org/p/chromium/issues/detail?id=1018450
     33  */
     34  </style>
     35 
     36  <p>Instructions: Select a few or all characters from the words "Text sample" using a variety of methods:
     37 
     38  <ul>
     39    <li>Select by dragging (leftwardedly or rightwardedly) the mouse across the characters.
     40    <li>Select by using shift + keyboard arrows when keyboard navigation / caret browsing is enabled.
     41    <li>Double click a word to select it.
     42    <li>Triple click the text to select it.
     43  </ul>
     44 
     45  <p>Test passes if, in every case, the background color of selected characters become green <em>and</em> if text color of selected characters remains aqua.
     46 
     47  <div>Text sample</div>