1 <!DOCTYPE html>
2 <html><head><meta charset="utf-8">
3 <title>CSS Basic User Interface Test: caret-color: auto</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 should" name="flags">
7 <meta content="Test checks that caret-color:auto is inherited as auto and resolves to the value of the color property at used value time" name="assert">
8 <style>
9 textarea {
10 font-size: 3em;
11 font-weight: bold;
12 width: 10em;
13 padding: 10px;
14 background: black; /* the color of a thin object like the caret is easier to see on a black background. */
15
16 color: lime;
17 }
18 div {
19 caret-color: auto;
20 color: red;
21 }
22 </style>
23 </head><body>
24 <p>Test passes if, when the text area below is focused for editing, the text insertion caret is green.</p>
25 <p>The shape of the caret, and whether it flashes, are not part of the test.</p>
26 <div>
27 <textarea id="test"></textarea>
28 </div>
29 <script>
30 window.onload = function() {
31 document.getElementById("test").focus();
32 }
33 </script>
34
35 </body></html>