caret-color-010

caret-color input

WeasyPrint

This browser

Flags
interact
Assertion
Test checks that caret-color can be set on an input

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Basic User Interface Test: caret-color input</title>
 4 <link href="mailto:rego@igalia.com" rel="author" title="Manuel Rego Casasnovas">
 5 <link href="http://www.w3.org/TR/css3-ui/#caret-color" rel="help">
 6 <meta content="interact" name="flags">
 7 <meta content="Test checks that caret-color can be set on an input" name="assert">
 8 <style>
 9   input {
10     font-size: 3em;
11     font-weight: bold;
12     width: 10em;
13     padding: 10px;
14     background: black; color: white; /* the color of a thin object like the caret is easier to see on a black background. */
15 
16     caret-color: lime;
17   }
18 </style>
19 </head><body>
20   <p>Test passes if, when the input field below is focused for editing, the text insertion caret is green.</p>
21   <p>The shape of the caret, and whether it flashes, are not part of the test.</p>
22   <input id="test">
23   <script>
24     window.onload = function() {
25       document.getElementById("test").focus();
26     }
27   </script>
28 
29 </body></html>