Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d12fc1298fbd6b3dfb0d7135de15b4ca06350bb8
      
https://github.com/WebKit/WebKit/commit/d12fc1298fbd6b3dfb0d7135de15b4ca06350bb8
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/interact/scripted/transformed-group-hittest-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/interact/scripted/transformed-group-hittest.html
    M LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations
    M Source/WebCore/rendering/RenderLayerSVGAdditions.cpp

  Log Message:
  -----------
  [LBSE] Fix hit testing of children inside transformed layered SVG groups
https://bugs.webkit.org/show_bug.cgi?id=326420

Reviewed by Rob Buis.

A transformed SVG layer is its own hit-test root, so the point passed to
RenderLayer::hitTestChildrenInDOMOrderForSVG() has to be relative to the layer
origin. The non-layer children were offset by the nominal SVG layout
location, as if the point were in user space, double-counting the location.
Points outside a shape could hit it and transformed children could be
missed entirely.

Map the point into user space before testing the non-layer children.
Fixes three tests previusly failing in LBSE - also add new WPT test.

* 
LayoutTests/imported/w3c/web-platform-tests/svg/interact/scripted/transformed-group-hittest-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/svg/interact/scripted/transformed-group-hittest.html:
 Added.
* LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations:
* Source/WebCore/rendering/RenderLayerSVGAdditions.cpp:
(WebCore::RenderLayer::hitTestChildrenInDOMOrderForSVG):

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



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

Reply via email to