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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-021.html
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-021.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-021.html
new file mode 100644
index 0000000000000000000000000000000000000000..1f1d0ae2ca068cb5b08c826f49ffff54a5518b86
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-021.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Basic User Interface Test: Default caret-color 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 the default value for caret-color property, which is 'auto', is not interpolatible.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+ @keyframes caret-color-to-lime {
+ to { caret-color: lime; }
+ }
+
+ #textarea {
+ color: magenta;
+ animation: caret-color-to-lime 2s -1s paused;
+ }
+</style>
+<body>
+ <textarea id="textarea"></textarea>
+ <div id=log></div>
+
+ <script>
+ test(
+ function(){
+ var textarea = document.getElementById("textarea");
+ assert_equals(getComputedStyle(textarea).caretColor, 'rgb(0, 255, 0)');
+ }, "Default caret-color is not interpolatible");
+</script>
+</body>
+

Powered by Google App Engine
This is Rietveld 408576698