Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9afea1e3042c8a21d595a3ab57c1013f391121ef
      
https://github.com/WebKit/WebKit/commit/9afea1e3042c8a21d595a3ab57c1013f391121ef
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/W3C-SVG-1.1/struct-group-02-b-expected.txt
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/marker-opacity-expected.txt
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/massive-coordinates-expected.txt
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/svg-overflow-types-expected.txt
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/viewbox-syntax-expected.txt
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/hixie/error/010-expected.txt
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/hixie/error/011-expected.txt
    M Source/WebCore/svg/SVGSVGElement.cpp

  Log Message:
  -----------
  [LBSE] A SMIL animated 'viewBox' has no effect on the outermost <svg> element
https://bugs.webkit.org/show_bug.cgi?id=325486

Reviewed by Rob Buis.

<set attributeName="viewBox"> had no effect on the outermost <svg> element in
LBSE, while the legacy SVG engine applies it just fine.

hasTransformRelatedAttributes() checked whether the x/y/viewBox attributes are
present. However, a SMIL animation never changes the attribute itself, so the
viewBox transformation was never applied. Check the current values instead,
which include the animated ones. A zero x/y and an empty viewBox lead to an
identity transformation, so they no longer create a layer, which changes
the expectations below.

Fixes svg/stroke/animated-non-scaling-stroke.html on LBSE.

* LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations:
* 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/W3C-SVG-1.1/struct-group-02-b-expected.txt:
* 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/marker-opacity-expected.txt:
* 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/massive-coordinates-expected.txt:
* 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/svg-overflow-types-expected.txt:
* 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/custom/viewbox-syntax-expected.txt:
* LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/hixie/error/010-expected.txt:
* LayoutTests/platform/mac-tahoe-wk2-lbse-text/svg/hixie/error/011-expected.txt:
* Source/WebCore/svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::hasTransformRelatedAttributes const):

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



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

Reply via email to