[webkit-changes] [WebKit/WebKit] f99c19: [CSS] Implement :scope in @scope prelude

Matthieu Dubet noreply at github.com
Thu Dec 14 12:58:40 PST 2023


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

  Changed paths:
    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-invalidation-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-nesting-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-visited-cssom-expected.txt
    M Source/WebCore/style/ElementRuleCollector.cpp

  Log Message:
  -----------
  [CSS] Implement :scope in @scope prelude
https://bugs.webkit.org/show_bug.cgi?id=266405
rdar://119661541

Reviewed by Antti Koivisto.

:scope in <scope-start> represents the outter scoping root,
:scope in <scope-end> represents the inner scoping root.

https://drafts.csswg.org/css-cascade-6/#scope-limits

* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-evaluation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-invalidation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-nesting-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/scope-visited-cssom-expected.txt:
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::scopeRulesMatch):

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




More information about the webkit-changes mailing list