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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-021.html

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: Patch for landing adding TODO 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: Default caret-color test animation</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 <link rel="help" href="https://www.w3.org/TR/web-animations-1/#dom-animatable-an imate">
7 <link rel="help" href="https://www.w3.org/TR/css3-color/#color0">
8 <meta name="assert" content="Test checks that the default value for caret-color property, which is 'auto', is not interpolatible.">
9 <script src="/resources/testharness.js"></script>
10 <script src="/resources/testharnessreport.js"></script>
11 <style>
12 @keyframes caret-color-to-lime {
13 to { caret-color: lime; }
14 }
15
16 #textarea {
17 color: magenta;
18 animation: caret-color-to-lime 2s -1s paused;
19 }
20 </style>
21 <body>
22 <textarea id="textarea"></textarea>
23 <div id=log></div>
24
25 <script>
26 test(
27 function(){
28 var textarea = document.getElementById("textarea");
29 assert_equals(getComputedStyle(textarea).caretColor, 'rgb(0, 255, 0)');
30 }, "Default caret-color is not interpolatible");
31 </script>
32 </body>
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698