From f2560c57b6bc8154dffe2b3ebe93bb0edc59a519 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Wed, 11 Mar 2026 22:49:25 -0400 Subject: [PATCH] Issue #2862 - Fix a few nested selectors --- layout/style/nsCSSParser.cpp | 2 +- .../test/test_basic_nesting_lowering.html | 277 +++++++++--------- 2 files changed, 134 insertions(+), 145 deletions(-) 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();
+}
+
+