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> |