rodneyrehm / viewport-units-buggyfill

Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari.
MIT License
1.59k stars 151 forks source link

Likelihood of working with CSS injected with React + CSS Modules? #99

Open brandondurham opened 6 years ago

brandondurham commented 6 years ago

My CSS is injected as style tags with React and using CSS Modules. I don’t want all CSS processed with viewport-units-buggyfill. I saw the tip to add data-viewport-units-buggyfill="ignore" to the <link /> tag which made me believe that injected CSS wouldn’t be supported, but I didn’t see mention of it.

Possible?

rodneyrehm commented 6 years ago

<style data-viewport-units-buggyfill="ignore"> should work as well, if I'm reading this right. Does that answer your question?

marcoribeiroweb commented 6 years ago

I see the point and i think have the same issue, but im not using React or something, i just use CSS and i dont want all CSS being processed by viewport-units-buggyfill, just want a specific elements. Your tip