[webkit-changes] [WebKit/WebKit] 826792: REGRESSION (267163 at main): Name for ::slotted pseud...

Antti Koivisto noreply at github.com
Sat Feb 3 12:38:05 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 82679256a4152facc36c85a38532d7196646d886
      https://github.com/WebKit/WebKit/commit/82679256a4152facc36c85a38532d7196646d886
  Author: Antti Koivisto <antti at apple.com>
  Date:   2024-02-03 (Sat, 03 Feb 2024)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-tree-scoped-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-tree-scoped.html
    M Source/WebCore/style/ContainerQueryEvaluator.cpp

  Log Message:
  -----------
  REGRESSION (267163 at main): Name for ::slotted pseudo element inside container query resolved against wrong scope
https://bugs.webkit.org/show_bug.cgi?id=268683
rdar://122224135

Reviewed by Alan Baradlay.

The name in

@container name (width) { ::slotted(*) { } }

is resolved against wrong scope when matching ::slotted.

* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-tree-scoped-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-tree-scoped.html:
* Source/WebCore/style/ContainerQueryEvaluator.cpp:
(WebCore::Style::ContainerQueryEvaluator::selectContainer):

Use the host of the originating element (<slot>) for :host scope resolution when matching ::slotted() rules.

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




More information about the webkit-changes mailing list