[webkit-changes] [WebKit/WebKit] ab8822: [CSS Nesting] Fix parsing of nested at-rules with ...
Matthieu Dubet
noreply at github.com
Mon Apr 17 11:27:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ab88221743a99d533cee3c21c2b4de51cbf87d6b
https://github.com/WebKit/WebKit/commit/ab88221743a99d533cee3c21c2b4de51cbf87d6b
Author: Matthieu Dubet <m_dubet at apple.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/cssom-expected.txt
M Source/WebCore/css/parser/CSSParserImpl.cpp
Log Message:
-----------
[CSS Nesting] Fix parsing of nested at-rules with CSSOM
https://bugs.webkit.org/show_bug.cgi?id=255530
rdar://107760234
Reviewed by Antti Koivisto.
CSS OM insertion can "bypass" the normal stack by inserting at an arbitrarily
deeply nested context.
We already have isNestedContext() function to check for this, but it was
not used here unfortunately.
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/cssom-expected.txt:
* Source/WebCore/css/parser/CSSParserImpl.cpp:
(WebCore::CSSParserImpl::consumeQualifiedRule):
(WebCore::CSSParserImpl::consumeRegularRuleList):
(WebCore::CSSParserImpl::consumeDeclarationListOrStyleBlockHelper):
Canonical link: https://commits.webkit.org/263028@main
More information about the webkit-changes
mailing list