Skip to content

Commit de8f20f

Browse files
committed
add changeset and tweak
1 parent 371f0d3 commit de8f20f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/cuddly-feet-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: add bindable dimension attributes types to SVG and MathML elements

packages/svelte/elements.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,14 +464,15 @@ export interface DOMAttributes<T extends EventTarget> {
464464
onfullscreenerror?: EventHandler<Event, T> | undefined | null;
465465
onfullscreenerrorcapture?: EventHandler<Event, T> | undefined | null;
466466

467-
xmlns?: string | undefined | null;
468-
467+
// Dimensions
469468
readonly 'bind:contentRect'?: DOMRectReadOnly | undefined | null;
470469
readonly 'bind:contentBoxSize'?: Array<ResizeObserverSize> | undefined | null;
471470
readonly 'bind:borderBoxSize'?: Array<ResizeObserverSize> | undefined | null;
472471
readonly 'bind:devicePixelContentBoxSize'?: Array<ResizeObserverSize> | undefined | null;
473472
readonly 'bind:clientWidth'?: number | undefined | null;
474473
readonly 'bind:clientHeight'?: number | undefined | null;
474+
475+
xmlns?: string | undefined | null;
475476
}
476477

477478
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/

0 commit comments

Comments
 (0)