Here's a working example: http://jsfiddle.net/0pxv3omh/6/
These two inputs have different heights (although it's very slight):
I can't follow the behaviour, I have this markup:
<div class="control">
<div class="horizontal-wrapper">
<input class="control__slider" id="input-range-year" type="range" min="1" max="40" value="30" step="1">
<input class="control__input" type="number" value="30">
</div>
</div>
And I basically duplicate it as a sibling and the height changes.
I found that I remothe this input
<input class="control__input" type="number" value="30">
The range inputs become the same height.
They also become the same height if I remove the display flex. I don't understand neither of those behaviours.
As far as I understand the two input should be the same height:
input[type="range"] {
height: 0.66em;
}
And though em
are context dependant, they should be on exactly the same context as far as I can understand.