Skip to content

Commit 304f823

Browse files
committed
Add patch for ed/idl/svg-paths.idl
Fix Web IDL
1 parent 1b7e0a3 commit 304f823

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

ed/idlpatches/svg-paths.idl.patch

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

0 commit comments

Comments
 (0)