Index: third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-020.html |
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-020.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-020.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7f2f2f0560ece8053a8ff079e9dc9da0aa8a38e1 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-020.html |
@@ -0,0 +1,39 @@ |
+<!DOCTYPE html> |
+<meta charset="utf-8"> |
+<title>CSS Basic User Interface Test: caret-color currentcolor test animation</title> |
+<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> |
+<link rel="help" href="http://www.w3.org/TR/css3-ui/#caret-color"> |
+<link rel="help" href="https://www.w3.org/TR/web-animations-1/#dom-animatable-animate"> |
+<link rel="help" href="https://www.w3.org/TR/css3-color/#color0"> |
+<meta name="assert" content="Test checks that 'currentcolor' value for caret-color property is interpolatible."> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<style> |
+ textarea { |
+ color: magenta; |
+ } |
+</style> |
+<body> |
+ <textarea id="textarea"></textarea> |
+ <div id=log></div> |
+ |
+ <script> |
+ test( |
+ function(){ |
+ var textarea = document.getElementById("textarea"); |
+ var keyframes = [ |
+ { caretColor: 'currentcolor' }, |
+ { caretColor: 'lime' } |
+ ]; |
+ var options = { |
+ duration: 10, |
+ fill: "forwards" |
+ }; |
+ |
+ var player = textarea.animate(keyframes, options); |
+ player.pause(); |
+ player.currentTime = 5; |
+ assert_equals(getComputedStyle(textarea).caretColor, 'rgb(128, 128, 128)'); |
+ }, "caret-color: currentcolor is interpolatible"); |
+</script> |
+</body> |