mobifyjs icon indicating copy to clipboard operation
mobifyjs copied to clipboard

style.backgroundImage blank after capturing

Open johnrobertallan opened this issue 11 years ago • 0 comments

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.

johnrobertallan avatar May 20 '14 17:05 johnrobertallan