| Summary: | offsetWidth for fractionally positioned elements returns different values depending on left position | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chad von Nau <chad> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | hyatt, simon.fraser, zalan |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.10 | ||
| URL: | http://jsfiddle.net/sbel/sykrLf2u/6/ | ||
|
Description
Chad von Nau
2015-07-20 19:12:09 PDT
Also reported to Chromium: https://code.google.com/p/chromium/issues/detail?id=512307 Having offsetWidth return non-integral values (bug 132895) was a web-breaking change (bug 134651). The chromium team has marked their version of this issue as a Won't Fix:
https://code.google.com/p/chromium/issues/detail?id=512307#c5
eae@chromium.org:
This is intentional as we snap elements to the pixel grid. The offset*
properties return the snapped values and as such are dependent on the
rendered size, and by extension, position.
I don't like offsetWidth changing based on position, but their logic seems sound to me. Maybe it's best to bury the issue here as well.
Yes, agreed. |