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)

x86
Windows XP
defect

Tracking

()

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.
Is this still an issue?
Yes.
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...
(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.
(In reply to comment #4) > I think we should set the widget padding to 2px on all platforms. Er, "widget border".
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.