Bug 37241
Summary: | Avoid painting areas of the background (incl. tiling) which are obscured by solid borders | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | mdelaney7, mitz, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | OS X 10.5 |
Simon Fraser (smfr)
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
*** Bug 78162 has been marked as a duplicate of this bug. ***
Simon Fraser (smfr)
<rdar://problem/10832889>