Bug 62990 - Background-image not applied if the element is not in the DOM
Summary: Background-image not applied if the element is not in the DOM
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 07:48 PDT by Martin Wittemann
Modified: 2011-06-20 07:48 PDT (History)
0 users

See Also:


Attachments
Test-Case (932 bytes, text/html)
2011-06-20 07:48 PDT, Martin Wittemann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wittemann 2011-06-20 07:48:35 PDT
Created attachment 97800 [details]
Test-Case

We have build a simple test-case to reproduce this issue. Seems like its a regression because this problem does not exists in Chrome stable but in Chrome beta and all newer versions. Also the Webkit nightly from today had this issue.

Brief description of what we do:
We are adding a DIV element to the DOM dynamically and setting a CSS background image. After a second, we remove the element from the DOM and again a second later, we change the background image's value and add it back to the DOM. Unfortunately, the old value is still present. Adding the DIV to the DOM before we change the background image works as expected.