[webkit-changes] [WebKit/WebKit] 38bdc0: [CSS] Disallow matching of :has() inside :has()

Matthieu Dubet noreply at github.com
Thu Aug 8 09:47:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 38bdc072b681d62aafeeac24419f885183d48329
      https://github.com/WebKit/WebKit/commit/38bdc072b681d62aafeeac24419f885183d48329
  Author: Matthieu Dubet <m_dubet at apple.com>
  Date:   2024-08-08 (Thu, 08 Aug 2024)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/css/SelectorChecker.cpp
    M Source/WebCore/css/SelectorChecker.h

  Log Message:
  -----------
  [CSS] Disallow matching of :has() inside :has()
https://bugs.webkit.org/show_bug.cgi?id=276827
rdar://132102543

Reviewed by Antti Koivisto.

We already disabled this at parsing time, but it can also
be created "contextually" with Nesting.

"The :has() pseudo-class cannot be nested"
https://drafts.csswg.org/selectors/#relational

* LayoutTests/TestExpectations:
* Source/WebCore/css/SelectorChecker.cpp:
(WebCore::SelectorChecker::matchHasPseudoClass const):
* Source/WebCore/css/SelectorChecker.h:

Canonical link: https://commits.webkit.org/281997@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list