[webkit-changes] [WebKit/WebKit] 7b99ea: [CSS] Fix wrong proximity calculation for implicit...

Matthieu Dubet noreply at github.com
Tue Mar 19 07:43:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7b99ea4ee24459026a3b0b8d11414d6ce8bfd9e1
      https://github.com/WebKit/WebKit/commit/7b99ea4ee24459026a3b0b8d11414d6ce8bfd9e1
  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-implicit-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-implicit.html
    M Source/WebCore/style/ElementRuleCollector.cpp

  Log Message:
  -----------
  [CSS] Fix wrong proximity calculation for implicit @scope
https://bugs.webkit.org/show_bug.cgi?id=270900
rdar://124640124

Reviewed by Antti Koivisto.

The previous code was wrongly trying to locate the distance
of the element to the @scope owner node (the <style> node),
while it should locate the distance to the parent of the owner node.

* 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-implicit-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-implicit.html:
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::scopeRulesMatch):

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