-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak the default alignment of input[type="range"]
#7570
Comments
Hello Nicola |
So both are inline-blocks that are baseline-aligned, but the range control has no text in it. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/10060 Interestingly, Firefox has different alignment compared to Chrome and Safari for empty buttons. I'm not sure if the alignment of empty buttons needs some magic that is not currently defined in the spec (https://html.spec.whatwg.org/multipage/rendering.html#button-layout-2)... I don't think it's possible to switch all controls to |
I suppose it could, however... When looking at all widgets, I noticed that http://software.hixie.ch/utilities/js/live-dom-viewer/saved/10061 That seems like a possible fix? At least in Chrome and Safari it looks like an improvement, though it might not be perfectly aligned. The cc @josepharhar @mfreed7 this issue may be relevant for web-platform-tests/interop#11 |
The alignment of
input[type="range"]
looks a bit off by default, and to make it look nicer, one has to applyvertical-align: middle
to the hosting element:Could maybe the default alignment of
input[type="range"]
be changed, so that authors don't have to make this tweak in CSS?(Live demo courtesy of @simevidas. Issue filed by encouragement from @zcorpan.)
The text was updated successfully, but these errors were encountered: