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

Unified Diff: third_party/WebKit/LayoutTests/css-parser/whitespace-declaration.html

Issue 1541443002: Fix small bugs in new CSS Property parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 11 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: third_party/WebKit/LayoutTests/css-parser/whitespace-declaration.html
diff --git a/third_party/WebKit/LayoutTests/css-parser/whitespace-declaration.html b/third_party/WebKit/LayoutTests/css-parser/whitespace-declaration.html
new file mode 100644
index 0000000000000000000000000000000000000000..3f45c7c7fea9a426e1151cbc1fae63453bc862bd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css-parser/whitespace-declaration.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../fast/css/getComputedStyle/resources/computed-style-listing.js"></script>
+<div id="target"></div>
+<script>
+test(function() {
+ var style = getComputedStyle(target);
+ for (var i = 0; i < style.length; i++) {
+ var property = style.item(i);
+ assert_false(CSS.supports(property, ''), property + ":;");
+ assert_false(CSS.supports(property, ' '), property + ": ;");
+ }
+}, 'Verify that property values consisting of only whitespace are not accepted.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698