OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Basic User Interface Test: caret-color visited links</title> |
| 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> |
| 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 can be set on a conten
teditable visited link"> |
| 8 <style> |
| 9 a { |
| 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: white; |
| 17 caret-color: red; |
| 18 } |
| 19 |
| 20 a:link { |
| 21 color: yellow; |
| 22 } |
| 23 |
| 24 a:visited { |
| 25 caret-color: lime; |
| 26 } |
| 27 </style> |
| 28 <body> |
| 29 <p>Before running this test, the link below must have been visited. It will ha
ve yellow text if this is not the case. If it its text is yellow, you need to na
vigate to this link first. |
| 30 <p>Test passes if, when the link below is focused for editing, the text insert
ion caret is green.</p> |
| 31 <p>The shape of the caret, and whether it flashes, are not part of the test.</
p> |
| 32 <!-- This is a copy of the W3C test just changing the href on the link, so Bli
nk considers it a visited link. --> |
| 33 <a id="link" contenteditable href="">link</a> |
| 34 <script> |
| 35 window.onload = function() { |
| 36 document.getElementById("link").focus(); |
| 37 } |
| 38 </script> |
| 39 </body> |
OLD | NEW |