In a nested context, selectors can be relative selectors (the anchor being the parent). https://drafts.csswg.org/selectors-4/#typedef-relative-selector https://drafts.csswg.org/css-nesting/#placement
<rdar://problem/103712211>
Pull request: https://github.com/WebKit/WebKit/pull/8071
Committed 258355@main (5f782c40ce1b): <https://commits.webkit.org/258355@main> Reviewed commits have been landed. Closing PR #8071 and removing active labels.
Debug builds are reporting an assertion failure after this change. https://results.webkit.org/?suite=layout-tests&test=fast%2Fcss%2Ffont_property_normal.html Buildbot: builder Apple-Ventura-Debug-AppleSilicon-WK2-Tests build 569 https://build.webkit.org/#/builders/704/builds/569 fast/css/font_property_normal.html [ Crash ] fast/css/parsing-invalid-block-recovery.html [ Crash ] ASSERTION FAILED: scopeCombinator != CSSSelector::Subselector css/parser/CSSSelectorParser.cpp(329) : std::unique_ptr<CSSParserSelector> WebCore::CSSSelectorParser::consumeRelativeNestedSelector(WebCore::CSSParserTokenRange &)