tor-browser

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

cursor-auto-006-manual.html (1582B)


      1 <!DOCTYPE html>
      2 <title>CSS Basic User Interface Test: cursor:auto on editable 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 'text' over editable elements.">
      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: text;
     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 
     31 [contenteditable] {
     32  border: solid;
     33  height: 1em;
     34  margin: 5px;
     35 }
     36 </style>
     37 <body>
     38  <p>The test passes if, when moved over every element inside the blue box, the cursor looks like the text insertion and selection cursor.</p>
     39  <p>Place the cursor into the orange box for a reference of what this should look like.</p>
     40  <div id=test>
     41    <textarea></textarea>
     42    <input>
     43    <div contenteditable=true style="border:solid"></div>
     44  </div>
     45  <div id=ref></div>
     46 </body>