From cd5b9add374449ccb39cd436225813ae753894b8 Mon Sep 17 00:00:00 2001 From: Mathias Picker <48158184+MathiasWP@users.noreply.github.com> Date: Tue, 5 May 2026 13:04:20 +0200 Subject: [PATCH] fix: also widen HTMLAttributes['style'] to StyleValue I only updated SVGAttributes['style'] in the previous commit and missed the HTMLAttributes one, which left object/array styles failing the type check on regular HTML elements. --- packages/svelte/elements.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index d67890f3fc..f19f36eb1d 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -776,7 +776,7 @@ export interface HTMLAttributes extends AriaAttributes, D placeholder?: string | undefined | null; slot?: string | undefined | null; spellcheck?: Booleanish | undefined | null; - style?: string | undefined | null; + style?: StyleValue | undefined | null; tabindex?: number | undefined | null; title?: string | undefined | null; translate?: 'yes' | 'no' | '' | undefined | null;