Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5826ce9b58c29fc5441c1e7c3fc1f981174c495e
      
https://github.com/WebKit/WebKit/commit/5826ce9b58c29fc5441c1e7c3fc1f981174c495e
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-06-07 (Sun, 07 Jun 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderListMarker.cpp
    M Source/WebCore/style/PropertyAllowlist.cpp

  Log Message:
  -----------
  ::marker should honor -webkit-text-fill-color
https://bugs.webkit.org/show_bug.cgi?id=316492
rdar://178916769

Reviewed by Alan Baradlay.

This patch aligns WebKit with Gecko / Firefox.

List markers were painted using the computed `color` property
(visitedDependentColorApplyingColorFilter), so they ignored
-webkit-text-fill-color. Text and other content honor text-fill-color
via TextBoxPainter/EllipsisBoxPainter, but RenderListMarker did not,
leaving marker symbols and text out of sync with surrounding text.

Paint the marker (disc/circle/square symbols and counter/string text)
with visitedDependentTextFillColorApplyingColorFilter() so it matches
the text painting path.

Also add -webkit-text-fill-color to the set of properties allowed on
the ::marker pseudo-element, so it can be set directly on ::marker and
not only inherited.

* LayoutTests/TestExpectations: Progression
* Source/WebCore/rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::paint):
* Source/WebCore/style/PropertyAllowlist.cpp:
(WebCore::Style::isValidMarkerStyleProperty):

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



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

Reply via email to