Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 644e1dd9319d6669f402ea0c33cd5d368f2a3330
      
https://github.com/WebKit/WebKit/commit/644e1dd9319d6669f402ea0c33cd5d368f2a3330
  Author: Matthieu Dubet <[email protected]>
  Date:   2024-10-03 (Thu, 03 Oct 2024)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/nested-declarations-matching-expected.txt
    M Source/WebCore/style/RuleSetBuilder.cpp
    M Source/WebCore/style/RuleSetBuilder.h

  Log Message:
  -----------
  [css-nesting] CSSNestedDeclarations inside @scope should resolve to 
:where(:scope)
https://bugs.webkit.org/show_bug.cgi?id=280544
rdar://136856371

Reviewed by Sammy Gill.

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

This patch maintains a stack during rule set building to be able
to determine whether the closest ancestor rule is a style rule or a scope rule,
and to resolve the nesting parent selector & appropriately (:is(<parent>) or 
:where(:scope)).

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/nested-declarations-matching-expected.txt:
* Source/WebCore/style/RuleSetBuilder.cpp:
(WebCore::Style::RuleSetBuilder::addChildRule):
(WebCore::Style::RuleSetBuilder::resolveSelectorListWithNesting):
(WebCore::Style::RuleSetBuilder::addStyleRule):
* Source/WebCore/style/RuleSetBuilder.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to