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

Unified Diff: LayoutTests/fast/css/all-shorthand.html

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated css-properties-as-js-properties-expected.txt Created 6 years, 9 months 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: LayoutTests/fast/css/all-shorthand.html
diff --git a/LayoutTests/fast/css/all-shorthand.html b/LayoutTests/fast/css/all-shorthand.html
new file mode 100644
index 0000000000000000000000000000000000000000..da9d314c30a3e5129b2794779eda0bc2b7a0081c
--- /dev/null
+++ b/LayoutTests/fast/css/all-shorthand.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+#target1 { color: red; background-color: currentColor; }
+#target1 { all: initial; }
+#target1 { color: green; }
+
+#parent { color: green; }
+#target2 { color: red; background-color: currentColor; }
+#target2 { all: inherit; }
+
+#target3 { color: green !important; }
+#target3 { all: initial; }
+
+#target4 { color: red !important; }
+#target4 { all: initial !important; }
+#target4 { background-color: red; }
+
+#target5 { all: initial !important; }
+#target5 { background-color: red; }
+#target5 { color: green !important; }
+</style>
+</head>
+<body>
+ <!-- Test for crbug.com/172051: all shorthand property -->
rune 2014/03/30 22:00:25 I think we use 4 space indentation in tests as wel
+ <div id='target1'>green color, no background-color</div>
+
+ <div id='parent'>
+ <div id='target2'>green color, no background-color</div>
+ </div>
+
+ <div id='target3'>green color</div>
+
+ <div id='target4'>not red color</div>
+
+ <div id='target5'>green color, no background-color</div>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698