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

Unified Diff: LayoutTests/fast/regions/webkit-region-syntax-space.html

Issue 25607005: Fix WHITESPACE issues in the CSS grammar. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: 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>

Powered by Google App Engine
This is Rietveld 408576698