[Webkit-unassigned] [Bug 64692] New: File upload control - filename text not aligned with button text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 18 06:41:42 PDT 2011


           Summary: File upload control - filename text not aligned with
                    button text
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dubroy at chromium.org

Created an attachment (id=101155)
 --> (https://bugs.webkit.org/attachment.cgi?id=101155&action=review)
Don't include border, padding, and margin when calculating text baseline

Observed in the following products:
- Chromium 14.0.826.0 on Ubuntu 10.04 - WebKit 535.1 (trunk at 91174)
- Epiphany 2.30.2, Ubuntu 10.04

In file upload controls (e.g. on http://validator.w3.org/#validate_by_upload), the filename text is not aligned with the button text -- it's several pixels too low (see attached screenshot).

I've attached a patch which seem to fix the problem. It looks like the code was accounting for the button's border, padding, & margin when the absoluteBoundingBoxRect already accounts for that.

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