Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit interpolation fails in node #41

Open
smuemd opened this issue Nov 25, 2018 · 1 comment
Open

Unit interpolation fails in node #41

smuemd opened this issue Nov 25, 2018 · 1 comment

Comments

@smuemd
Copy link

smuemd commented Nov 25, 2018

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.

@porsager
Copy link
Owner

Ah yes.. I've got a local branch for version 2 (and some experiments) that includes SSR which handles this, I need to finish a project the coming week that needs SSR, so should see the light of day soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants