[webkit-changes] [WebKit/WebKit] 711c7a: Selector filter should include hashes from single ...
Antti Koivisto
noreply at github.com
Thu Jan 19 09:34:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 711c7abb5e9bc0be8a03503f6e3c811d1ec4be65
https://github.com/WebKit/WebKit/commit/711c7abb5e9bc0be8a03503f6e3c811d1ec4be65
Author: Antti Koivisto <antti at apple.com>
Date: 2023-01-19 (Thu, 19 Jan 2023)
Changed paths:
M Source/WebCore/css/SelectorFilter.cpp
M Source/WebCore/css/SelectorFilter.h
Log Message:
-----------
Selector filter should include hashes from single argument :is()
https://bugs.webkit.org/show_bug.cgi?id=250833
<rdar://problem/104425645>
Reviewed by Alan Baradlay.
:is(foo) bar
should have the same filtering as
foo bar
This may be important with CSS nesting which is defined in terms of :is().
* Source/WebCore/css/SelectorFilter.cpp:
(WebCore::SelectorFilter::collectSimpleSelectorHash):
Collect from the selector list of a single argument :is/:where.
(WebCore::SelectorFilter::collectSelectorHashes):
Add an argument to include the rightmost component too.
(WebCore::SelectorFilter::collectHashes):
* Source/WebCore/css/SelectorFilter.h:
Canonical link: https://commits.webkit.org/259089@main
More information about the webkit-changes
mailing list