[webkit-changes] [WebKit/WebKit] 9309d6: [CSS] Contextually invalid selectors have a specif...

Matthieu Dubet noreply at github.com
Thu Aug 29 20:26:59 PDT 2024


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

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/contextually-invalid-selectors-expected.html
    A LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/contextually-invalid-selectors.html
    M Source/WebCore/css/CSSSelector.cpp
    M Source/WebCore/css/SelectorChecker.cpp

  Log Message:
  -----------
  [CSS] Contextually invalid selectors have a specificity of 0
https://bugs.webkit.org/show_bug.cgi?id=277739
rdar://133391094

Reviewed by Tim Nguyen.

https://github.com/w3c/csswg-drafts/issues/9600

* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/contextually-invalid-selectors-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/contextually-invalid-selectors.html: Added.
* Source/WebCore/css/CSSSelector.cpp:
(WebCore::maxSpecificity):
(WebCore::simpleSelectorSpecificity):

Canonical link: https://commits.webkit.org/282944@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