Closed Bug 668882 Opened 11 years ago Closed 11 years ago

Please! Remove <button> line-height restriction

Categories

(Core :: Layout, defect)

All
Other
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: steve, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build ID: 20110413222027

Steps to reproduce:

Tried to set the line-height on a <button>


Actual results:

Firefox ignored the entry. IE 8 handles it correctly.


Expected results:

The line-height should have changed.

Apparently, the default style sheet contains this:

button, input[type="reset"], input[type="button"], input[type="submit"] {
	line-height:normal !important;
}

The "!important" apparently makes it impossible to override. Please remove the "!important". There is no reason to force this behavior, and it is a trivial change.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: 4.0 Branch → unspecified
> Apparently, the default style sheet contains this:

The <button> part of this got taken out in bug 349259, and that change was left in when the rest of that bug was backed out.  So you can't set line-height on an <input type="button">, but it works on <button> now.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Summary: Please! Remove button line-height restriction → Please! Remove <button> line-height restriction
You need to log in before you can comment on or make changes to this bug.