[Webkit-unassigned] [Bug 147136] New: offsetWidth for absolutely positioned elements returns different values depending on left position

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 20 19:12:09 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147136

            Bug ID: 147136
           Summary: offsetWidth for absolutely positioned elements returns
                    different values depending on left position
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Macintosh
                OS: Mac OS X 10.10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chad at vonnau.com

Demo here:
http://jsfiddle.net/sbel/sykrLf2u/6/

Steps to reproduce the problem:
1. Create an absolutely positioned element at left: 0.
2. Get offsetWidth of element.
2. Move element to left: .1px
3. Get offsetWidth of element.

What is the expected behavior?
The offsetWidths should match.

What went wrong?
When the element is positioned at .1px, it's offsetWidth is 1px larger.

Notes:
The demo comes from this SO post about the issue: http://stackoverflow.com/q/26124678

This bug is also present in Chrome, but not Firefox or IE.

This bug will likely resolve itself if offsetWidth gains support for subpixel values. The Chrome team seems to be working on this, not sure if you guys are as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150721/05270c40/attachment-0001.html>


More information about the webkit-unassigned mailing list