[webkit-changes] [WebKit/WebKit] 432386: [CSS] Any @scope limit makes the element out of scope

Matthieu Dubet noreply at github.com
Tue Mar 19 11:39:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 432386fb902b696fb2fbcb272588e21f0519b1bd
      https://github.com/WebKit/WebKit/commit/432386fb902b696fb2fbcb272588e21f0519b1bd
  Author: Matthieu Dubet <m_dubet at apple.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
    M LayoutTests/fast/css/scope-at-rule-expected.html
    M LayoutTests/fast/css/scope-at-rule.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-evaluation-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-evaluation.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-invalidation-expected.txt
    M Source/WebCore/style/ElementRuleCollector.cpp

  Log Message:
  -----------
  [CSS] Any @scope limit makes the element out of scope
https://bugs.webkit.org/show_bug.cgi?id=270806
rdar://124956673

Reviewed by Antti Koivisto.

<scope-end> is a relative selector list, any valid complex selector
inside it represents a scope limit : for an element to be in scope,
it needs to not have any of those selectors matching one of its ancestors.

 * LayoutTests/fast/css/scope-at-rule-expected.html:
 * LayoutTests/fast/css/scope-at-rule.html:
 * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-evaluation-expected.txt:
 * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-evaluation.html:
 * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-invalidation-expected.txt:
 * Source/WebCore/style/ElementRuleCollector.cpp:
 (WebCore::Style::ElementRuleCollector::scopeRulesMatch):

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