From b5045f93418d471ab0ca407cb0834179bf6c4fcb Mon Sep 17 00:00:00 2001 From: Mathias Picker <48158184+MathiasWP@users.noreply.github.com> Date: Wed, 6 May 2026 10:46:24 +0200 Subject: [PATCH] chore: drop redundant comment in to_style --- packages/svelte/src/internal/shared/attributes.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/svelte/src/internal/shared/attributes.js b/packages/svelte/src/internal/shared/attributes.js index f2602055a1..6f3b74e7a8 100644 --- a/packages/svelte/src/internal/shared/attributes.js +++ b/packages/svelte/src/internal/shared/attributes.js @@ -158,9 +158,6 @@ function to_css_name(name) { * @returns {string | null} */ export function to_style(value, styles) { - // `class` accepts strings, objects and arrays via clsx; mirror that for `style` - // by normalising non-string values into a CSS declaration string upfront so the - // existing parser (which expects a string) handles directive merging unchanged. if (value != null && typeof value !== 'string') { value = style_value_to_string(value); }