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

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

Issue 335733003: Added layout tests for all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/all-shorthand-css-text.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e3a300492e1872432c11c4f1340759bbb2a979e8
--- /dev/null
+++ b/LayoutTests/fast/css/all-shorthand.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<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; }
+
+#target6 { all: initial !important; }
+#target6 { color: red !important; }
+#target6 { all: initial !important; }
+
+#target7 { all: initial !important; }
+#target7 { direction: rtl; }
+
+#target8 { all: initial !important; }
+#target8 { direction: rtl !important; }
+#target8 { all: initial !important; }
+
+#parent9 { color: green; }
+#target9 { all: unset; }
+</style>
+<!-- Test for crbug.com/172051: all shorthand property -->
+<!-- The following tests describes current behavior, -->
+<!-- i.e. before implementing all. -->
+<div id='target1'>green color, green background-color</div>
+
+<div id='parent'>
+ <div id='target2'>red color, red background-color</div>
+</div>
+
+<div id='target3'>green color</div>
+
+<div id='target4'>red color, red background-color</div>
+
+<div id='target5'>green color, red background-color</div>
+
+<div id='target6'>red color</div>
+
+<div id='target7'>direction is rtl</div>
+
+<div id='target8'>direction is rtl</div>
+
+<div id='parent9'>
+ <div id='target9'>green color</div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/css/all-shorthand-css-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698