Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f0fc065d7d7760463a1456ae449b4057c4d3dd8
      
https://github.com/WebKit/WebKit/commit/7f0fc065d7d7760463a1456ae449b4057c4d3dd8
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/view-timelines/svg-graphics-element-003-expected.txt
    M Source/WebCore/animation/ViewTimeline.cpp

  Log Message:
  -----------
  [scroll-animations] View timeline on a transformed SVG element uses the 
untransformed subject size
https://bugs.webkit.org/show_bug.cgi?id=307790
rdar://170309749

Reviewed by Antoine Quint.

An SVG subject's offset is mapped with localToContainerPoint(), which always
applies the element's SVG transform, but its size came from the local
bounding box and ignored that transform. The two were measured in different
spaces, so a transformed subject (e.g. a rotated <foreignObject>) got a wrong
range. Map the local box through localToContainerQuad() so the size accounts
for the transform too. CSS transforms stay ignored, as the mapping omits
MapCoordinatesMode::UseTransforms.

* 
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/view-timelines/svg-graphics-element-003-expected.txt:
* Source/WebCore/animation/ViewTimeline.cpp:
(WebCore::ViewTimeline::cacheCurrentTime):

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



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

Reply via email to