[webkit-changes] [WebKit/WebKit] e80242: [CSS] @scope can have orphan declarations with an ...
Matthieu Dubet
noreply at github.com
Thu Dec 21 01:56:33 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e80242bc95b6dd3197e2ecfb88a4634f6fc2c7bf
https://github.com/WebKit/WebKit/commit/e80242bc95b6dd3197e2ecfb88a4634f6fc2c7bf
Author: Matthieu Dubet <m_dubet at apple.com>
Date: 2023-12-21 (Thu, 21 Dec 2023)
Changed paths:
M LayoutTests/fast/css/scope-at-rule-expected.html
M LayoutTests/fast/css/scope-at-rule.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-nesting-expected.txt
M Source/WebCore/css/parser/CSSParserImpl.cpp
M Source/WebCore/css/parser/CSSParserImpl.h
Log Message:
-----------
[CSS] @scope can have orphan declarations with an implicit enclosing style rule
https://bugs.webkit.org/show_bug.cgi?id=266710
rdar://119937025
Reviewed by Antti Koivisto.
* LayoutTests/fast/css/scope-at-rule-expected.html:
* LayoutTests/fast/css/scope-at-rule.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-nesting-expected.txt:
* Source/WebCore/css/parser/CSSParserImpl.cpp:
(WebCore::CSSParserImpl::consumeNestedGroupRules):
Rename the method to use a name closer to the spec
(WebCore::CSSParserImpl::consumeMediaRule):
(WebCore::CSSParserImpl::consumeSupportsRule):
(WebCore::CSSParserImpl::consumeScopeRule):
Allow declarations inside @scope, not just rules
(WebCore::CSSParserImpl::consumeLayerRule):
(WebCore::CSSParserImpl::consumeContainerRule):
(WebCore::CSSParserImpl::consumeRegularRuleList): Deleted.
* Source/WebCore/css/parser/CSSParserImpl.h:
Canonical link: https://commits.webkit.org/272407@main
More information about the webkit-changes
mailing list