Bug 11482 - Textbox INPUT is wider than should be
Summary: Textbox INPUT is wider than should be
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 420+
Hardware: Mac (Intel) OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 05:38 PST by Miroslav Juhos
Modified: 2006-11-01 14:10 PST (History)
1 user (show)

See Also:


Attachments
Testcase (312 bytes, text/html)
2006-11-01 05:39 PST, Miroslav Juhos
no flags Details
Screenshot with description (4.27 KB, image/png)
2006-11-01 05:41 PST, Miroslav Juhos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Juhos 2006-11-01 05:38:41 PST
INPUT with type="text" is rendered wider than is set in CSS style in strict mode.

E.g. INPUT which was set width 200px is rendered with width 202px.
Comment 1 Miroslav Juhos 2006-11-01 05:39:53 PST
Created attachment 11322 [details]
Testcase

See blue div as measure.
Comment 2 Miroslav Juhos 2006-11-01 05:41:02 PST
Created attachment 11323 [details]
Screenshot with description
Comment 3 Dave Hyatt 2006-11-01 14:10:13 PST
This is not a bug.  input elements use content box sizing like other HTML elements in strict mode, so the border/padding of the textfield is not counted as part of the width.   You will see the same behavior in Firefox if you try it.