Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 393ca8169849cf9422fb85727151ec3dba1114b8
      
https://github.com/WebKit/WebKit/commit/393ca8169849cf9422fb85727151ec3dba1114b8
  Author: Tim Nguyen <n...@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to