[webkit-changes] [WebKit/WebKit] b5890b: [CSS] Top-level & selector has zero specificity

Matthieu Dubet noreply at github.com
Tue Jan 28 09:37:23 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b5890b75ec8eac1ee8fb335aac5d655dd77a5e73
      https://github.com/WebKit/WebKit/commit/b5890b75ec8eac1ee8fb335aac5d655dd77a5e73
  Author: Matthieu Dubet <m_dubet at apple.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-specificity-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/top-level-parent-pseudo-specificity-expected.txt
    M Source/WebCore/css/CSSSelector.cpp

  Log Message:
  -----------
  [CSS] Top-level & selector has zero specificity
https://bugs.webkit.org/show_bug.cgi?id=286600

Reviewed by Ryan Reno.

By CSSWG resolution, top-level nesting parent selector has zero specificity.

https://github.com/w3c/csswg-drafts/issues/10196#issuecomment-2161119978

* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-specificity-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/top-level-parent-pseudo-specificity-expected.txt:
* Source/WebCore/css/CSSSelector.cpp:
(WebCore::CSSSelector::replaceNestingParentByPseudoClassScope):

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