Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

style.backgroundImage blank after capturing #277

Open
johnrobertallan opened this issue May 20, 2014 · 0 comments
Open

style.backgroundImage blank after capturing #277

johnrobertallan opened this issue May 20, 2014 · 0 comments

Comments

@johnrobertallan
Copy link

During capturing if I try to modify the style.backgroundImage property on a DIV it ends up blank when the document is rendered. Any thoughts or tricks? I'm attempting to add a query string to do a responsive image. e.style.backgroundImage = 'url(background.jpg?width=200)';

It seems to work if I parse it out of the style attribute. The problem with this is that it doesn't work in older versions of IE. I am of course not running mobify in these older versions but the same code for images does get run for a couple of different reasons and I'm trying to avoid branching my code. Not a big deal, I have a work around but thought I'd bring it to your attention and see if there is a trick I'm missing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant