mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
9d00dd2f96
<input>'s of type checkbox and radio are rendered as native widgets by default on Desktop, but on Fennec, we fallback to using the built-in, non-native checkboxes. The earlier patches in this series made it possible for agent, user and page stylesheets to make changes to the non-native checkbox and radio input fields. Unfortunately, some of the default agent styles for those checkbox and radio elements on Fennec were accidentally setting rules that they shouldn't. That wasn't a problem before because the inputs couldn't be styled before. Now that they can, we're failing a bunch of reftests because the inputs look wrong in certain situations. For example: 1) We were setting background: var(--form_background) for every radio and checkbox input. --form_background is just a colour though, and that meant that the rest of the background styles were being overwritten. This has been fixed by setting background-color: var(--form_background) instead. The same also applied to some usage of --form_background_disabled. 2) We were setting border-radius: var(--form_border_radius) on all input elements, but this was putting rounded corners on the checkbox and radio inputs as well. This rule has been modified to skip checkbox and radio inputs. MozReview-Commit-ID: CnpTRXcCxoY --HG-- extra : rebase_source : ee688b96270e9b2b3498f18d43f9430048b9b444 |
||
---|---|---|
.. | ||
android | ||
locales |