Closed Bug 1619297 Opened 4 years ago Closed 4 years ago

line-height property should be applicable to all elements, but it have no effect on select element

Categories

(Core :: Layout: Form Controls, defect)

73 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: fon.igel, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4056.0 Safari/537.36 Edg/82.0.432.3

Steps to reproduce:

Added two form elements: input and select. Set line-height CSS property to both (e. g. 2em)

Actual results:

Input have correct line-height, but select still have "normal" as a value. Reproduction: https://jsbin.com/boresikeso/edit?html,css,output

Expected results:

Specification states that line-height applied to every element, so select should have new line-height like input.

We used to do this, actually, but it broke a bunch of websites (see bug 1501908). So for themed <select> elements we restore line-height to normal. It sucks, but I don't think we want to change this without other UAs doing the same.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Resolution: --- → WONTFIX
See Also: → 1501908
You need to log in before you can comment on or make changes to this bug.