Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/caret/caret-color-005.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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Basic User Interface Test: caret-color auto, white on black</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 white on black">
8 <style>
9 textarea {
10 font-size: 3em;
11 font-weight: bold;
12 width: 10em;
13 padding: 10px;
14
15 background: black;
16 color: white;
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 white
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698