Skip to content

Unit interpolation fails in node #41

@smuemd

Description

@smuemd

const el = document.createElement('div')

just noticed in a unit test that this line throws an exeption in node when calling bss like this

b({
    backgroundColor: 'pink',
    fontSize: 1.3 // <- no unit
})

while suprisingly seems to work fine

b({
    backgroundColor: 'pink',
    fontSize: '1.3px' // <- with unit
})

not really an issue, but may be helpful to remember in case you want to make it work in node down the line. Hence posting it here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions