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

Unified Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-009.html

Issue 2539753002: [css-ui] Import W3C Test Suite (Closed)
Patch Set: Created 4 years, 1 month 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-009.html
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-009.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-009.html
new file mode 100644
index 0000000000000000000000000000000000000000..99bc47ee5fd2f1380e8edbb9fd8e66dc2cc882f4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/caret-color-009.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Basic User Interface Test: caret-color computed values</title>
+<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
+<link rel="help" href="http://www.w3.org/TR/css3-ui/#caret-color">
+<link rel="help" href="https://drafts.csswg.org/css-color-4/#currentcolor-color">
+<meta name="flags" content="dom">
+<meta name="assert" content="Test checks that auto and currentcolor compute to themselves for caret-color and that initial computes to auto">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+#d1 {
+ caret-color: auto;
+}
+#d2 {
+ caret-color: currentcolor;
+}
+#d3 {
+ caret-color: initial;
+}
+</style>
+<body>
+ <div id=d1></div>
+ <div id=d2></div>
+ <div id=d3></div>
+ <div id=log></div>
+
+<script>
+test(
+ function(){
+ var d1 = document.getElementById("d1");
+ assert_equals(window.getComputedStyle(d1)["caret-color"], "auto");
+ }, "The computed value of auto should be auto");
+test(
+ function(){
+ var d2 = document.getElementById("d2");
+ assert_equals(window.getComputedStyle(d2)["caret-color"], "currentcolor");
+ }, "The computed value of currentcolor should be currentcolor");
+test(
+ function(){
+ var d3 = document.getElementById("d3");
+ assert_equals(window.getComputedStyle(d3)["caret-color"], "auto");
+ }, "The computed value of initial should be auto");
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698