CSS variable values are trimmed of whitespace [according to spec]?
> Return undefined for whitespace-only CSS variable values
I've gotten in the bad habit using of CSS vars for dynamic text, this will shoot me in the foot some day.
> Return undefined for whitespace-only CSS variable values
I've gotten in the bad habit using of CSS vars for dynamic text, this will shoot me in the foot some day.
Can you elaborate on this trick?
I update the value of `--sale-text` to change all elements with that given classname to "25% off!" instead (for ex).