Bug 50413
Summary: | Strange 2px margin on <button> | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jacob Thomason <jacob> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | joepeck, JoolsChadwick, robert |
Priority: | P3 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.6 | ||
URL: | http://www.webdevout.net/test?0T | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=238587 |
Jacob Thomason
I am not certain if the included url will remain at that address long enough, so, if not, it can be seen at...
http://dev.rentpost.com/managers (the form <button> at the bottom of the page; contact form)
You will notice that I've overridden the margin on that element to force proper layout, but that shouldn't be necessary as margin was never defined and additionally, gecko doesn't render this mysterious margin.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Joseph Pecoraro
Looks like 2px is the default margin for a button, data:text/html,<button>
However, where does this come from? Its tough to tell from the Web Inspector
as it doesn't look like it comes from any of the user agent stylesheets.
Robert Hogan
2px is an 'intrinsic margin' supplied for form elements that have no width specified. This is WebKit-specific behaviour.
Jools
Is there any difference between a user agent style sheet value and an "intrinsic" value, other than it not appearing in inspectors? Why does the latter value type exist, other than to waste people's time?
If this bug report didn't exist, how is anyone supposed to know that this is not a bug? If your inspector states that a user agent value of "0em" was computed as "2px", why would anyone come to any conclusion other than "webkit is bad at math"?