Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Side by Side Diff: third_party/WebKit/LayoutTests/editing/caret/caret-color-011.html

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Patch for landing applying suggested changes Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Basic User Interface Test: caret-color contenteditable</title>
4 <link rel="author" title="Manuel Rego Casasnovas" href="">
5 <link rel="help" href="">
6 <meta name="flags" content="interact">
7 <meta name="assert" content="Test checks that caret-color can be set on a conten teditable element">
8 <style>
9 div {
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 care t is easier to see on a black background. */
16 caret-color: lime;
17 }
18 </style>
19 <body>
20 <p>Test passes if, when when the editable element below is focused 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 <div id="test" contenteditable>Focus this editable element</div>
23 <script>
24 window.onload = function() {
25 document.getElementById("test").focus();
26 }
27 </script>
28 </body>

Powered by Google App Engine
This is Rietveld 408576698