Skip to content

Incorrect interpolation of CSS declarations into inline styles #3309

@loilo

Description

@loilo

Describe the bug
Inline styles with interpolations inside can behave very strangely. This only seems to be the case when a whole CSS property name is interpolated.

This is very hard to describe with words and I probably haven't even grasped the exact cause for this error, so please take a look at the comprehensive REPL linked below.

To Reproduce
Here's the REPL. I've tried to boil it down as much as I could and cover any edge cases I could imagine.

Severity
There are workarounds to avoid this issue, so now that I know it, this is just a minor annoyance for me. However it is completely unexpected and incorrect behavior so it will hit users harder who are not as experienced with debugging issues like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions