[webkit-changes] [WebKit/WebKit] e84a61: [CSS] Remove invalid scoping roots when outside th...

Matthieu Dubet noreply at github.com
Fri Dec 22 14:43:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e84a617b4b4d0088df770ae59385090500d8c5f6
      https://github.com/WebKit/WebKit/commit/e84a617b4b4d0088df770ae59385090500d8c5f6
  Author: Matthieu Dubet <m_dubet at apple.com>
  Date:   2023-12-22 (Fri, 22 Dec 2023)

  Changed paths:
    M LayoutTests/fast/css/scope-at-rule-expected.html
    M LayoutTests/fast/css/scope-at-rule.html
    M Source/WebCore/style/ElementRuleCollector.cpp

  Log Message:
  -----------
  [CSS] Remove invalid scoping roots when outside the <scope-end>
https://bugs.webkit.org/show_bug.cgi?id=266771
rdar://119998989

Reviewed by Antti Koivisto.

When there are multiple scoping roots identified from the <scope-start>,
only keep the relevant ones to the <scope-end> if it exists.

* LayoutTests/fast/css/scope-at-rule-expected.html:
* LayoutTests/fast/css/scope-at-rule.html:
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::scopeRulesMatch):

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




More information about the webkit-changes mailing list