Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65fe8cf1723d8393749fdb5d5e5dd67cc60fd864
      
https://github.com/WebKit/WebKit/commit/65fe8cf1723d8393749fdb5d5e5dd67cc60fd864
  Author: Matthieu Dubet <[email protected]>
  Date:   2025-09-23 (Tue, 23 Sep 2025)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/css/parser/CSSSelectorParser.cpp
    M Source/WebCore/css/parser/CSSSelectorParser.h
    M Source/WebCore/cssjit/SelectorCompiler.cpp
    M Source/WebCore/style/StyleTreeResolver.cpp

  Log Message:
  -----------
  [CSS] Support chaining pseudo-elements after ::details-content
https://bugs.webkit.org/show_bug.cgi?id=283446
rdar://140328987

Reviewed by Antti Koivisto.

* LayoutTests/TestExpectations:

Pass new tests

* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(WebCore::isSimpleSelectorValidAfterPseudoElement):
(WebCore::CSSSelectorParser::consumeCompoundSelector):

Allow parsing of pseudo-element after ::details-content.

* Source/WebCore/css/parser/CSSSelectorParser.h:

Store the complete preceding pseudo-element instead of only its type
to be able to check what kind of user agent part it is.

* Source/WebCore/cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::constructFragmentsInternal):

* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolvePseudoElement):

When inside a user agent part, we also check the enclosing resolver if 
necessary for
the boolean firstLine and firstLetter.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to