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

style.backgroundImage blank after capturing #277

@johnrobertallan

Description

@johnrobertallan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions