line-height property should be applicable to all elements, but it have no effect on select element
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
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.
Comment 1•4 years ago
|
||
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.
Description
•