From 505600c45e695b98ed3b416730c9ecfd0b8e7072 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Thu, 12 Mar 2026 08:02:18 -0400 Subject: [PATCH] Issue #2862 - handle more edge cases in css lowering --- layout/style/CSSNestingLowerer.cpp | 1 + layout/style/test/mochitest.ini | 1 + .../test/test_nesting_lowering_recovery.html | 149 ++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 layout/style/test/test_nesting_lowering_recovery.html diff --git a/layout/style/CSSNestingLowerer.cpp b/layout/style/CSSNestingLowerer.cpp index 9340c4c5af..2dd45d58a9 100644 --- a/layout/style/CSSNestingLowerer.cpp +++ b/layout/style/CSSNestingLowerer.cpp @@ -395,6 +395,7 @@ private: case '[': case ':': case '&': + case '|': case '>': case '+': case '~': diff --git a/layout/style/test/mochitest.ini b/layout/style/test/mochitest.ini index 13d1b77acc..28b3ab8122 100644 --- a/layout/style/test/mochitest.ini +++ b/layout/style/test/mochitest.ini @@ -74,6 +74,7 @@ support-files = file_animations_with_disabled_properties.html [test_background_blend_mode.html] [test_basic_nesting_lowering.html] [test_nesting_lowering_parser_edges.html] +[test_nesting_lowering_recovery.html] [test_box_size_keywords.html] [test_bug73586.html] [test_css_math_functions.html] diff --git a/layout/style/test/test_nesting_lowering_recovery.html b/layout/style/test/test_nesting_lowering_recovery.html new file mode 100644 index 0000000000..3e3184931f --- /dev/null +++ b/layout/style/test/test_nesting_lowering_recovery.html @@ -0,0 +1,149 @@ + + + + + Test CSS Nesting Lowering Recovery Paths + + + + +
+
+
+
+

+
+
+