Accept a list of token values in the guard, and quote what was written

A transition-duration or -timing-function listing one token per property
(a spatial spring for scale, an effects spring for opacity) was reported
as literal: blanking each var() left a bare comma, which is not one of
the safe values. Every item of a list is now checked on its own. A
message also quoted the blanked shell, `var(      ), 200ms`; it now
quotes the declaration as written. SealShare's drop zone found it
(plan step 46).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andreas Reinhold / reini
2026-09-15 13:48:59 +02:00
co-authored by Claude Opus 5
parent f307079a45
commit d557dd9b49
3 changed files with 42 additions and 11 deletions
@@ -0,0 +1,10 @@
/* A list of values, each from a token, is fine; one literal in the list is not. */
.fine-list {
transition-duration: var(--md-sys-motion-spatial-slow-duration), var(--md-sys-motion-effects-slow-duration);
transition-timing-function: var(--md-sys-motion-spatial-slow), var(--md-sys-motion-effects-slow);
}
.mixed-list {
transition-duration: var(--md-sys-motion-spatial-slow-duration), 200ms;
transition-timing-function: var(--md-sys-motion-spatial-slow), ease-out;
}