Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 391677e4cebdc603c4d9b4ff9ddf540015d1e9a9
      
https://github.com/WebKit/WebKit/commit/391677e4cebdc603c4d9b4ff9ddf540015d1e9a9
  Author: Karl Dubost <[email protected]>
  Date:   2026-06-29 (Mon, 29 Jun 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/struct/SVGSVGElement-currentTranslate-SameObject-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/struct/SVGSVGElement-currentTranslate-SameObject.html

  Log Message:
  -----------
  WPT: add [SameObject] identity coverage for SVGSVGElement.currentTranslate
https://bugs.webkit.org/show_bug.cgi?id=318044
rdar://180830216

Reviewed by Brent Fulgham.

SVG 2 declares currentTranslate on SVGSVGElement with the WebIDL [SameObject]
extended attribute, which requires the getter to return the same object on
every access. The existing WPT coverage for this corner of the SVG DOM is
reftest-only and visual (svg/struct/reftests/currentScale*); nothing asserts
the JS-observable identity requirement

    svg.currentTranslate === svg.currentTranslate.

WebKit already satisfies this: currentTranslate is backed by a stable
Ref<SVGPoint> member returned by reference, so the same wrapper is observed on
every read. This adds a scripted testharness test that guards that behavior and
exposes the cross-engine divergence upstream.

The test isolates the readonly check on the attribute value rather than object
identity, so an engine that fails [SameObject] still passes the readonly subtest
if it honors readonly. No WebKit code change is required.

* 
LayoutTests/imported/w3c/web-platform-tests/svg/struct/SVGSVGElement-currentTranslate-SameObject-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/svg/struct/SVGSVGElement-currentTranslate-SameObject.html:
 Added.

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



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

Reply via email to