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 + + + + +
+
+
+
+

+
+
+