gecko-dev/mobile
Mike Conley 9d00dd2f96 Bug 418833 - Make non-native checkbox and radio input styles look right in Fennec. r=snorp
<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
2016-11-10 20:46:46 -05:00
..
android Bug 418833 - Make non-native checkbox and radio input styles look right in Fennec. r=snorp 2016-11-10 20:46:46 -05:00
locales Bug 1285281 - Update Qwant icon to our guidelines. r=florian 2016-07-18 13:57:59 -05:00