[Webkit-unassigned] [Bug 90281] New: Paddings are rounded to whole pixels

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 29 07:42:46 PDT 2012


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

           Summary: Paddings are rounded to whole pixels
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: behdad at google.com
                CC: rjkroege at chromium.org, eae at chromium.org
        Depends on: 90097


Test with Chrome that has SUBPIXEL_LAYOUT enabled.  While testing for bug 90097, I came across this bug:

According to https://trac.webkit.org/wiki/LayoutUnit paddings are supposed to have subpixel precision, but this sample shows that they are being rounded:

  http://jsfiddle.net/behdad/ALd5F/5/

Output:

span[position:static; padding-right:7.5px]: rect.width=7
span[position:fixed; padding-right:7.5px]: rect.width=7
span[position:absolute; padding-right:7.5px]: rect.width=7
span[position:relative; padding-right:7.5px]: rect.width=7


Applying patches in bug 90097 fixes the two middle cases, but no the other two:

span[position:static; padding-right:7.5px]: rect.width=7
span[position:fixed; padding-right:7.5px]: rect.width=7.5
span[position:absolute; padding-right:7.5px]: rect.width=7.5
span[position:relative; padding-right:7.5px]: rect.width=7

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list