tor-browser

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

cursor-auto-005.html (1598B)


      1 <!DOCTYPE html>
      2 <title>CSS Basic User Interface Test: cursor:auto on form elements</title>
      3 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      4 <link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
      5 <meta name="flags" content="interact">
      6 <meta charset="UTF-8">
      7 <meta name="assert" content="The 'auto' cursor value does the same as 'default' over everything other than selectable text or editable elements, such as form elements that do not take text input.">
      8 <style>
      9 #test {
     10  border: solid blue;
     11  width: 200px;
     12  cursor: auto;
     13 }
     14 #test * {
     15  cursor: url("support/cursors/fail.png"), help !important; /* Override UA styles, regardless of specificity */
     16  cursor: auto !important; /* Override UA styles, regardless of specificity */
     17  resize: none; /* The appearance of the cursor over UA provided resize controls is out of scope. */
     18  overflow: hidden; /* The appearance of the cursor over UA provided scroll controls is out of scope */
     19 }
     20 #ref {
     21  width: 100px;
     22  height: 100px;
     23  cursor: default;
     24  border: solid orange;
     25 }
     26 :root {
     27  cursor: help; /* give the root element a different cursor so that
     28  it is easy to tell if something changes when hovering the target.*/
     29 }
     30 </style>
     31 <body>
     32  <p>The test passes if, when moved over every element inside the blue box, the cursor remains the platform-dependent default cursor.</p>
     33  <p>Place the cursor into the orange box for a reference of what this should look like.</p>
     34  <div id=test>
     35    <button>button</button>
     36    <input type=button value=input-button>
     37    <select></select>
     38  </div>
     39  <div id=ref></div>
     40 </body>