I've been messing with iframe for chrome extensions and I seem to be running into a lot of issues with iframes. Anyways, I have an iframe injected into a website(cross-domain). What I'd like is for the iframes background image to inherit the parents page background(So it blends in). So this is what I am trying:
//Setup iframe attributes
iframe.setAttribute("id","injected_frame");
iframe.setAttribute("src", 'google.com');
iframe.setAttribute("width","100%");
iframe.setAttribute("height","425");
iframe.setAttribute("frameborder","0");
iframe.setAttribute("scrolling","auto");
iframe.setAttribute("style","backgroundImage: inherit"); <-- undefined error
Basically it just doesn't work, background stays the same and I get an undefined error when trying this.