Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 711c7abb5e9bc0be8a03503f6e3c811d1ec4be65
      
https://github.com/WebKit/WebKit/commit/711c7abb5e9bc0be8a03503f6e3c811d1ec4be65
  Author: Antti Koivisto <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to