Bug 37241 - Avoid painting areas of the background (incl. tiling) which are obscured by solid borders
Summary: Avoid painting areas of the background (incl. tiling) which are obscured by s...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 78162 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-07 17:33 PDT by Simon Fraser (smfr)
Modified: 2014-12-22 14:58 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2010-04-07 17:33:11 PDT
In some cases we can fall into image tiling code when drawing backgrounds when we could have avoided this by being smarter about the fact that parts of the background may be obscured by solid borders.

E.g.:

    .checkerboard {
        background: transparent url("checker.png");
        -webkit-background-size: 100% 100%;
        width: 576px;
        height: 576px;
        border: 20px solid rgba(1, 1, 1, 0.5);
        -webkit-transform: translateZ(0);
    }

where checker.png is a 576x576 image.
Comment 1 Simon Fraser (smfr) 2012-02-08 23:47:51 PST
*** Bug 78162 has been marked as a duplicate of this bug. ***
Comment 2 Simon Fraser (smfr) 2012-02-08 23:48:17 PST
<rdar://problem/10832889>