|  | 
|  | 1 | +From f897418ac4ae06110152d1512f3bd779348427c3 Mon Sep 17 00:00:00 2001 | 
|  | 2 | +From: Francois Daoust <[email protected] > | 
|  | 3 | +Date: Thu, 6 Mar 2025 16:11:18 +0100 | 
|  | 4 | +Subject: [PATCH] Fix Web IDL | 
|  | 5 | + | 
|  | 6 | +Pending resolution of https://github.com/w3c/svgwg/issues/964 | 
|  | 7 | +--- | 
|  | 8 | + ed/idl/svg-paths.idl | 9 +++++---- | 
|  | 9 | + 1 file changed, 5 insertions(+), 4 deletions(-) | 
|  | 10 | + | 
|  | 11 | +diff --git a/ed/idl/svg-paths.idl b/ed/idl/svg-paths.idl | 
|  | 12 | +index e432cc0ad..2f0813572 100644 | 
|  | 13 | +--- a/ed/idl/svg-paths.idl | 
|  | 14 | ++++ b/ed/idl/svg-paths.idl | 
|  | 15 | +@@ -3,21 +3,22 @@ | 
|  | 16 | + // (https://github.com/w3c/webref) | 
|  | 17 | + // Source: SVG Paths (https://svgwg.org/specs/paths/) | 
|  | 18 | +  | 
|  | 19 | +-[NoInterfaceObject] | 
|  | 20 | ++[LegacyNoInterfaceObject, Exposed=Window] | 
|  | 21 | + interface SVGPathSegment { | 
|  | 22 | +-  DOMString type; | 
|  | 23 | +-  sequence<float> values; | 
|  | 24 | ++  attribute DOMString type; | 
|  | 25 | ++  attribute FrozenArray<float> values; | 
|  | 26 | + }; | 
|  | 27 | +  | 
|  | 28 | + dictionary SVGPathDataSettings { | 
|  | 29 | +    boolean normalize = false; | 
|  | 30 | +-} | 
|  | 31 | ++}; | 
|  | 32 | +  | 
|  | 33 | + interface mixin SVGPathData { | 
|  | 34 | +    sequence<SVGPathSegment> getPathData(optional SVGPathDataSettings settings = {}); | 
|  | 35 | +    undefined setPathData(sequence<SVGPathSegment> pathData); | 
|  | 36 | + }; | 
|  | 37 | +  | 
|  | 38 | ++[Exposed=Window] | 
|  | 39 | + interface SVGPathElement : SVGGeometryElement { | 
|  | 40 | +  | 
|  | 41 | +   readonly attribute SVGAnimatedNumber pathLength; | 
|  | 42 | +--  | 
|  | 43 | +2.37.1.windows.1 | 
|  | 44 | + | 
0 commit comments