Bug 134903

Summary: Subpixel rendering: Zero sized compositing container's content positioned off by one device pixel.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan, simon.fraser
Priority: P2 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description zalan 2014-07-14 14:50:04 PDT
The content gets pushed to the left/bottom when the parent compositing layer has zero size.
<style>
.container {
    position: absolute;
    left: 0.25px;
    top: 0px;
    -webkit-transform: translateZ(0); 
}

.foo {
    position: absolute;
    left: 0.25px;
    top: 0px;
    width: 100px;
    height: 100px;
    border: 0.5px solid red;
}
</style>
<div class=container>
    <div class=foo></div>
</div>
Comment 1 zalan 2014-07-14 14:50:27 PDT
<rdar://problem/17618608>
Comment 2 zalan 2014-07-14 15:14:25 PDT
Created attachment 234883 [details]
Patch
Comment 3 WebKit Commit Bot 2014-07-14 19:55:47 PDT
Comment on attachment 234883 [details]
Patch

Clearing flags on attachment: 234883

Committed r171100: <http://trac.webkit.org/changeset/171100>
Comment 4 WebKit Commit Bot 2014-07-14 19:55:50 PDT
All reviewed patches have been landed.  Closing bug.