Bug 134903 - Subpixel rendering: Zero sized compositing container's content positioned off by one device pixel.
Summary: Subpixel rendering: Zero sized compositing container's content positioned off...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2014-07-14 14:50 PDT by zalan
Modified: 2014-07-14 19:55 PDT (History)
5 users (show)

See Also:


Attachments
Patch (6.74 KB, patch)
2014-07-14 15:14 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.