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

Unified Diff: third_party/WebKit/LayoutTests/css-parser/css-wide-keywords-descriptors.html

Issue 1386733003: Do not accept CSS-wide keywords for descriptors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing Created 4 years, 7 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 | third_party/WebKit/Source/build/scripts/css_properties.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css-parser/css-wide-keywords-descriptors.html
diff --git a/third_party/WebKit/LayoutTests/css-parser/css-wide-keywords-descriptors.html b/third_party/WebKit/LayoutTests/css-parser/css-wide-keywords-descriptors.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5a89174a0c29c47a0946313656441a0918f0d0d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css-parser/css-wide-keywords-descriptors.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/property-parsing-test.js"></script>
+<script>
+
+function testDescriptors(keyword) {
+ assert_invalid_value("src", keyword);
+ assert_invalid_value("orientation", keyword);
+ assert_invalid_value("min-zoom", keyword);
+ assert_invalid_value("max-zoom", keyword);
+ assert_invalid_value("user-zoom", keyword);
+ assert_invalid_value("unicode-range", keyword);
+ assert_invalid_value("font-display", keyword);
+}
+
+testDescriptors("initial");
+testDescriptors("inherit");
+testDescriptors("unset");
+testDescriptors("INITIAL");
+testDescriptors("INHERIT");
+testDescriptors("UNSET");
+testDescriptors("iNiTiAl");
+testDescriptors("iNhErIt");
+testDescriptors("uNsEt");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/css_properties.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698