Support vh and vw units
Sharcoux opened this issue · 5 comments
Hi,
I think we should be able to support vh and vw units by replacing Xvh
by X * Dimensions.get('window').height / 100
and Xvw
by X * Dimensions.get('window').width / 100
, can't we?
I'm guessing this issue more asking for vw/vh support in styled components. There's not much this library can do to add support there - it's up to styled components to add support for it in their runtime
My styled-components clone supports it (https://jacobp100.github.io/cssta/css-support/) - so it is definitely possible for support to be added!
I'll close this issue as there's nothing we can do here to support it, but feel free to continue the discussion or ask any other questions
Oh, sorry then, I thought it was the right project to target. Ok, I'll move it there.
There’s probably an issue already. It’s a common feature request
Yeah, I found it. Seems on stand by for now. I'll try to understand exactly how it should be done, see if I can give it a try.