Index: LayoutTests/fast/regions/webkit-region-syntax-space.html |
diff --git a/LayoutTests/fast/regions/webkit-region-syntax-space.html b/LayoutTests/fast/regions/webkit-region-syntax-space.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4526596ce0001f25f9e0f2cea5cc32f083aa9fd2 |
--- /dev/null |
+++ b/LayoutTests/fast/regions/webkit-region-syntax-space.html |
@@ -0,0 +1,32 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Spaces in @-webkit-region prelude</title> |
+ <script src="../../resources/testharness.js"></script> |
+ <script src="../../resources/testharnessreport.js"></script> |
+ <style>@-webkit-region/**/#flow { #id {} }</style> |
+ <style>@-webkit-region/**/ #flow { #id {} }</style> |
+ <style>@-webkit-region /**/#flow { #id {} }</style> |
+ <style>@-webkit-region /**/ #flow { #id {} }</style> |
+</head> |
+<body> |
+ <div id="log"></div> |
+ <script> |
+ test(function(){ |
+ assert_equals(document.styleSheets[0].cssRules.length, 1, "Rule valid and in CSSOM."); |
+ }, "Comment between @-symbol and flow name"); |
+ |
+ test(function(){ |
+ assert_equals(document.styleSheets[1].cssRules.length, 1, "Rule valid and in CSSOM."); |
+ }, "Comment + space between @-symbol and flow name"); |
+ |
+ test(function(){ |
+ assert_equals(document.styleSheets[2].cssRules.length, 1, "Rule valid and in CSSOM."); |
+ }, "Space + comment between @-symbol and flow name"); |
+ |
+ test(function(){ |
+ assert_equals(document.styleSheets[3].cssRules.length, 1, "Rule valid and in CSSOM."); |
+ }, "Space + comment + space between @-symbol and flow name"); |
+ </script> |
+</body> |
+</html> |