Closed Bug 631682 Opened 9 years ago Closed 9 years ago
.onload event is fired before background image for html element in style
I could not find a way to know loading background image in style is completed, so checked that the background image is in image cache. As mkato said in bug 580873#c265, this test case works if html element is changed to body element, so I thinks the check works fine for this bug.
Component: Event Handling → Style System (CSS)
QA Contact: events → style-system
This test fails for me without the patch, passes with. Worst-case, it could randomly pass even if someone regresses this bug...
Nice catch. What's going on here is that background image loads start when we compute the background style. For non-root elements, this happens in nsCSSFrameConstructor::ConstructFramesFromItem because we make and explicit GetStyleBackground call there. But for the root element we don't call ConstructFramesFromItem.
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Comment on attachment 509977 [details] [diff] [review] Proposed fix r=dbaron
Whiteboard: [need review] → [need landing]
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [need landing]
Target Milestone: --- → mozilla2.0b12
You need to log in before you can comment on or make changes to this bug.