Bug 98835 - [Chromium] Button with overflow: auto and 0px border+padding renders with scroll bar
Summary: [Chromium] Button with overflow: auto and 0px border+padding renders with scr...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/cUVs9/
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-09 16:51 PDT by Ilya Sherman
Modified: 2013-04-11 12:09 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Sherman 2012-10-09 16:51:56 PDT
The code at the bottom of this description, also available at http://jsfiddle.net/cUVs9/, results in a button rendered with a horizontal scroll bar.  This doesn't seem appropriate -- the default sizing should cause the text to fit correctly, sans scrollbar.

<style>
#button {
  border: 0;
  overflow: auto;
  padding: 0;
}
</style>

<input type="button" id="button" value="Hello World!">​
Comment 1 Kent Tamura 2012-10-14 19:53:55 PDT
I couldn't reproduce this with Google Chrome 22/24 OSX, Windows.
Comment 2 Ilya Sherman 2012-10-15 21:20:19 PDT
(In reply to comment #1)
> I couldn't reproduce this with Google Chrome 22/24 OSX, Windows.

I am testing with OS X 10.8.2.  Perhaps it's a Lion-specific bug?  (I can confirm that the issue does not reproduce on Windows.)