diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index 10012a3f93..484085b019 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -683,7 +683,7 @@ private: if (c == '{') { return true; } - if (c == ':' || c == ';' || c == '}') { + if (c == ';' || c == '}') { return false; } } diff --git a/layout/style/test/test_basic_nesting_lowering.html b/layout/style/test/test_basic_nesting_lowering.html index 8f3f175632..6c08934a11 100644 --- a/layout/style/test/test_basic_nesting_lowering.html +++ b/layout/style/test/test_basic_nesting_lowering.html @@ -1,157 +1,146 @@ - + - - - Test for Basic CSS Nesting Lowering - - - - -
- -
-
-

-        
+  
+
+
+
+ +
+
+

+
-    
+if (typeof SimpleTest !== "undefined" && typeof SpecialPowers !== "undefined") {
+  runMochitest();
+} else {
+  runStandalone();
+}
+
+