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

Background-size-polyfill doesn't work with pseudo elements :after and :before #46

Open
meventi-stephan opened this issue Apr 18, 2014 · 3 comments

Comments

@meventi-stephan
Copy link

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);
}
@jefferyto
Copy link
Collaborator

This would require some refactoring, as the polyfill currently sets styles on elements directly (which doesn't work for pseudo-elements).

@vitorbal
Copy link

any news on this one? :)

@mstorus
Copy link

mstorus commented Aug 28, 2014

I'm also interested to hear if there's an update about this

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

No branches or pull requests

4 participants