diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-03-18 09:21:44 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-04-16 16:35:07 +0200 |
commit | decc648c46e5dd1af758cc2900d3e989bbace4d0 (patch) | |
tree | df750018e2f1ea3f13812df84cefb8bb2934f771 /components/script/devtools.rs | |
parent | ece146988c695bcf432bffb606116ba9504e80e7 (diff) | |
download | servo-decc648c46e5dd1af758cc2900d3e989bbace4d0.tar.gz servo-decc648c46e5dd1af758cc2900d3e989bbace4d0.zip |
style: Fix number input so that it honors overflow-clip-box-block.
This never worked, but it's more visible with the new form controls which have
more padding.
Make the anonymous div and co a pseudo-element, so that they inherit from the
<input> properly in all cases. This works for non-number inputs because the
editor root is a direct child of the <input>, but it doesn't for number inputs
because there's a flex wrapper in between.
This way overflow-clip-box: inherit does what we want. Reset the padding in the
inline direction, as the padding for <input type=number> applies to the arrow
boxes as well, and thus we'd double-apply it.
Differential Revision: https://phabricator.services.mozilla.com/D65271
Diffstat (limited to 'components/script/devtools.rs')
0 files changed, 0 insertions, 0 deletions