Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c4cfd9698b72688674a1818f0b5731c6980024d3
      
https://github.com/WebKit/WebKit/commit/c4cfd9698b72688674a1818f0b5731c6980024d3
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-11-27 (Thu, 27 Nov 2025)

  Changed paths:
    A LayoutTests/css3/images/cross-fade-svg-fragments-expected.html
    A LayoutTests/css3/images/cross-fade-svg-fragments.html
    A LayoutTests/css3/images/cross-fade-svg-size-diff-expected.html
    A LayoutTests/css3/images/cross-fade-svg-size-diff.html
    M LayoutTests/platform/mac-wk1/TestExpectations
    M Source/WebCore/rendering/style/StyleCrossfadeImage.cpp

  Log Message:
  -----------
  left and right arrows don't look right on hover on 
https://tickets.compagnie-oceane.fr
https://bugs.webkit.org/show_bug.cgi?id=253427
rdar://106633417

Reviewed by Antoine Quint.

This patch aligns WebKit with Blink / Chromium.

Merge (Test): 
https://chromium.googlesource.com/chromium/src.git/+/3ca78bf60493da8b2b7ad63f59bd169cb00a4947
 &
https://chromium.googlesource.com/chromium/src.git/+/ece900bafe8d6ff3346ed364a5d3fd13799b8620

When SVG images are used in CSS crossfade functions, they need to be
wrapped in SVGImageForContainer objects to ensure proper sizing and to
support fragment identifiers (e.g., image.svg#view1).

Without this fix, SVG images in crossfades would render at incorrect
sizes and fragment URLs would not work properly.

Further, I manually confirmed that it fixes the issue observed on website.

Tests: css3/images/cross-fade-svg-fragments.html
       css3/images/cross-fade-svg-size-diff.html
* LayoutTests/css3/images/cross-fade-svg-fragments-expected.html: Added.
* LayoutTests/css3/images/cross-fade-svg-fragments.html: Added.
* LayoutTests/css3/images/cross-fade-svg-size-diff-expected.html: Added.
* LayoutTests/css3/images/cross-fade-svg-size-diff.html: Added.
* Source/WebCore/rendering/style/StyleCrossfadeImage.cpp:
(WebCore::StyleCrossfadeImage::image const):
* LayoutTests/platform/mac-wk1/TestExpectations: Add Platform Specific 
Expectation

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



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

Reply via email to