Closed
Bug 812452
Opened 12 years ago
Closed 12 years ago
The behavior of Text box width and Select box width are not same
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mosiur.remote, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/16.0
Build ID: 20121024073032
Steps to reproduce:
I have set following CSS for INPUT, SELECT and TEXTAREA:
input, select, textarea
{
padding: 3px;
border: 1px;
width: 150px;
}
Actual results:
I noticed following layout output:
Final width of Text box and Text area = 150 + 3 + 3 + 1 + 1 = 158
Final width of Select box = 142 + 3 + 3 + 1 + 1 = 150
Expected results:
The layout output should be same for both Text box and select box:
Final width of Text box and Text area = 150 + 3 + 3 + 1 + 1 = 158
Final width of Select box = 150 + 3 + 3 + 1 + 1 = 158
Could you attach a minimal testcased, please. It would help to test and debug.
![]() |
||
Updated•12 years ago
|
Component: Untriaged → Layout: Block and Inline
Product: Firefox → Core
![]() |
||
Updated•12 years ago
|
Component: Layout: Block and Inline → Layout
![]() |
||
Comment 2•12 years ago
|
||
<select> has box-sizing:border-box in the UA stylesheet.
This is required for web compat, unfortunately. If you want, you can reset box-sizing to a value you prefer, of course.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #2)
> <select> has box-sizing:border-box in the UA stylesheet.
>
> This is required for web compat, unfortunately. If you want, you can reset
> box-sizing to a value you prefer, of course.
I have used "box-sizing: content-box;". Now, the issue has been resolved. Thank you Boris Zbarsky.
You need to log in
before you can comment on or make changes to this bug.
Description
•