Bug 109280
Summary: | Background shift when an element is partially off its container and positioned with a .5px | ||
---|---|---|---|
Product: | WebKit | Reporter: | pgpp05 |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | ap, eae, jonlee, leviw, pgpp05, zalan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux | ||
URL: | http://jsfiddle.net/yuHWw/1/ |
pgpp05
Example URL: http://jsfiddle.net/yuHWw/1/
Steps to reproduce the problem:
1. The element must be positioned exactly at the middle of a subpixel (top/left ending with .5px, which occurs frequently using percent positions in a container with odd dimensions)
2. The element must be partially off the container, using a negative margin or a negative position
What is the expected behavior?
The background should be drawn from the origin of the element (0x0). Especially, if the background fits exactly in the element, it should not be repeated.
What went wrong?
The background is shifted, and an extra 1px strip is repeated on the visible edges.
My UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
Works well on FF (lastest) and IE9
Regards,
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Can you please attach a screenshot? I don't think that I see any brokenness in Safari, either shipping WebKit or a nightly build.