background-size-polyfill
background-size-polyfill copied to clipboard
Background-size-polyfill doesn't work with pseudo elements :after and :before
Background-size-polyfill doesn't work with pseudo elements :after and :before.
Here's an example:
div.test:after {
background-image: url(test.jpg);
background-repeat: no-repeat;
background-position: center center;
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-size: contain;
-ms-behavior: url(backgroundsize.min.htc);
behavior: url(backgroundsize.min.htc);
}
This would require some refactoring, as the polyfill currently sets styles on elements directly (which doesn't work for pseudo-elements).
any news on this one? :)
I'm also interested to hear if there's an update about this