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

Bug on img #61

Closed fabbrikk closed 8 years ago

fabbrikk commented 9 years ago

When appling on an img tag something like this:

#div img{
    max-height: 40vh;
    content: 'viewport-units-buggyfill; max-height: 40vh;';
}

the img disapear. A workaround can be use moodernizr to inject cssvhunit class to html, and then in css add this rule:

.cssvhunit #div img{
    content: normal !important;
}
rodneyrehm commented 8 years ago

thanks for the hint! I added a note to the readme.