Open
Bug 373852
Opened 18 years ago
Updated 2 years ago
Themed checkboxes with height:auto get rendered the wrong size
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
NEW
People
(Reporter: sharparrow1, Unassigned)
References
()
Details
data:text/html,<input type="checkbox"><input type="checkbox" style="height:auto">
Expected results:
Checkboxes are the same height/width
Actual results:
The second checkbox is smaller
Only applies to themed checkboxes/radio buttons.
Updated•18 years ago
|
Flags: in-testsuite?
Comment 1•17 years ago
|
||
Is this still an issue?
Reporter | ||
Comment 2•17 years ago
|
||
Yes.
Comment 3•17 years ago
|
||
So what height would you expect then? The current height just comes from forms.css, no?
Note that on Linux this doesn't seem to be a problem, by the way...
Comment 4•16 years ago
|
||
(In reply to comment #3)
> So what height would you expect then?
The same as when height isn't set, I think: 13px.
> The current height just comes from
> forms.css, no?
I think the current height comes from nsFormControlFrame::GetIntrinsicHeight:
return nsPresContext::CSSPixelsToAppUnits(13 - 2 * 2);
Subtracting 2 * 2 makes sense for non-themed buttons because they have a border-width of 2px. Themed radios / checkboxes however have their widget border set to 0 on OS X and to something that comes from the system on Windows and Linux.
I think we should set the widget padding to 2px on all platforms.
Comment 5•16 years ago
|
||
(In reply to comment #4)
> I think we should set the widget padding to 2px on all platforms.
Er, "widget border".
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•