OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Basic User Interface Test: caret-color auto, black on white</title> |
| 4 <link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net"> |
| 5 <link rel="help" href="http://www.w3.org/TR/css3-ui/#caret-color"> |
| 6 <meta name="flags" content="interact"> |
| 7 <meta name="assert" content="Test checks that caret-color:auto provides good con
trast in black on white"> |
| 8 <style> |
| 9 textarea { |
| 10 font-size: 3em; |
| 11 font-weight: bold; |
| 12 width: 10em; |
| 13 padding: 10px; |
| 14 |
| 15 background: white; |
| 16 color: black; |
| 17 caret-color: auto; /*initial value, but to be sure in case the UA stylesheet
sets something else */ |
| 18 } |
| 19 </style> |
| 20 <body> |
| 21 <p>Test passes if, when the text area below is focused for editing, the text i
nsertion caret is either black |
| 22 or some other color that contrasts well with the background.</p> |
| 23 <p>The shape of the caret, and whether it flashes, are not part of the test.</
p> |
| 24 <textarea autofocus></textarea> |
| 25 </body> |
OLD | NEW |