Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 60b2e2fb9e0c8380adc77739a7f94d8ad480dfad
      
https://github.com/WebKit/WebKit/commit/60b2e2fb9e0c8380adc77739a7f94d8ad480dfad
  Author: Antti Koivisto <[email protected]>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom-expected.txt
    M Source/WebCore/style/StyleBuilderState.cpp

  Log Message:
  -----------
  [css-values-5] sibling-index() and sibling-count() are 1 for children of a 
shadow root
https://bugs.webkit.org/show_bug.cgi?id=323966
rdar://187201634

Reviewed by Alan Baradlay.

Count correctly in shadow tree root.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom-expected.txt:
* Source/WebCore/style/StyleBuilderState.cpp:
(WebCore::Style::markTreeCountingFunctionUsed):

Also factor into a function and fix marking.

(WebCore::Style::isLooselyMatchedTreeScopedReference):
(WebCore::Style::BuilderState::siblingCount):
(WebCore::Style::BuilderState::siblingIndex):

Use the ElementTraversal counting path also for shadow root children.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to