When an element is given a background image, that is later over ruled with another background image later on in the css cascade, webkit downloads both images. Check the link for an example, and then view the Resources in the Inspector panel.
*** Bug 31630 has been marked as a duplicate of this bug. ***
This seems to have been fixed in or before r65052?
No, this still happens if the two images are referred to by different rule blocks.
<rdar://problem/8354391>
Created attachment 65526 [details] Mostly complete patch This patch works pretty well, but breaks one test: fast/css-generated-content/after-order.html
Created attachment 65622 [details] Patch
Attachment 65622 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebCore/css/CSSStyleSelector.cpp:6725: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 65622 [details] Patch r=me
http://trac.webkit.org/changeset/66141
http://trac.webkit.org/changeset/66141 seems to have caused fast/forms/select-style.html to fail on mac: @@ -56,10 +56,10 @@ RenderText {#text} at (0,160) size 498x18 text run at (0,160) width 498: "This tests that background is white if only background-image:none is specified." RenderBR {BR} at (498,174) size 0x0 - RenderMenuList {SELECT} at (2,180) size 51x18 [bgcolor=#FFFFFF] - RenderBlock (anonymous) at (0,0) size 51x18 - RenderText at (8,2) size 20x13 - text run at (8,2) width 20: "test" + RenderMenuList {SELECT} at (2,180) size 51x18 [bgcolor=#FFFFFF] [border: (1px solid #000000)] + RenderBlock (anonymous) at (1,1) size 49x16 + RenderText at (8,1) size 20x13 + text run at (8,1) width 20: "test" RenderText {#text} at (55,179) size 4x18 text run at (55,179) width 4: " " RenderBR {BR} at (59,193) size 0x0
I filed bug 44737 to investigate the test breakage.
*** Bug 52847 has been marked as a duplicate of this bug. ***