[webkit-changes] [WebKit/WebKit] 393ca8: Fix css/selectors/invalidation/nth-child-of-has.ht...

Tim Nguyen noreply at github.com
Fri Jun 9 09:02:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 393ca8169849cf9422fb85727151ec3dba1114b8
      https://github.com/WebKit/WebKit/commit/393ca8169849cf9422fb85727151ec3dba1114b8
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2023-06-09 (Fri, 09 Jun 2023)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/style/ClassChangeInvalidation.cpp

  Log Message:
  -----------
  Fix css/selectors/invalidation/nth-child-of-has.html WPT
https://bugs.webkit.org/show_bug.cgi?id=253942
rdar://106767971

Reviewed by Antti Koivisto.

:nth-child(even of :has(.c)) triggers rulesets with MatchElement::HasNonSubjectOrScopeBreaking when the class changes.

We need to invalidate both before & after the class change when we come across this (previously we were just invalidating before the change).

* LayoutTests/TestExpectations:
* Source/WebCore/style/ClassChangeInvalidation.cpp:
(WebCore::Style::ClassChangeInvalidation::computeInvalidation):

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




More information about the webkit-changes mailing list