When I define an input
element with the following CSS properties:
input {
border: none;
font-family: arial, sans-serif;
font-size: 16px;
line-height: 16px;
padding: 0;
}
I anticipate the height of the input
to be 16px, however, upon inspecting in Chrome Developer Tools, it displays a height of 18px.
https://i.stack.imgur.com/7Tomc.png
In Firefox, on the other hand, the height remains at 16px.
What could be causing this additional 2px discrepancy in Chrome?
Fiddle: https://jsfiddle.net/fh7upk0n/
Although I understand that using 'height' would set a fixed height, I am curious about the origin of the extra 2px in Chrome.