Bug 1365896 - Set -moz-appearance to none on in-content xul|checkbox and xul|radio, r=jaws draft
authorTimothy Guan-tin Chien <timdream@gmail.com>
Fri, 19 May 2017 13:57:59 +0800
changeset 580977 842cf22af80ce7fc4c53b47e466a56fa50e3cdd9
parent 580322 baca19289313e46c70cae4f38d85bea1e285a3ef
child 629447 100c9d035cb7e2706e7050aed00b8e062752c378
push id59730
push userbmo:timdream@gmail.com
push dateFri, 19 May 2017 06:22:21 +0000
reviewersjaws
bugs1365896
milestone55.0a1
Bug 1365896 - Set -moz-appearance to none on in-content xul|checkbox and xul|radio, r=jaws This patch should not result any visual differences. Rather, it makes nsTextPaintStyle::InitCommonColors() think the checkboxes and radio buttons are not themed and it should calculate contrast properly. MozReview-Commit-ID: LF1bQQE1V9X
toolkit/themes/shared/in-content/common.inc.css
--- a/toolkit/themes/shared/in-content/common.inc.css
+++ b/toolkit/themes/shared/in-content/common.inc.css
@@ -512,16 +512,17 @@ html|a:hover:active,
   color: var(--in-content-link-color-active);
   text-decoration: none;
 }
 
 /* Checkboxes and radio buttons */
 
 xul|checkbox {
   margin-inline-start: 0;
+  -moz-appearance: none;
 }
 
 xul|*.checkbox-check,
 html|input[type="checkbox"] {
   -moz-appearance: none;
   width: 23px;
   height: 23px;
   border: 1px solid var(--in-content-box-border-color);
@@ -559,16 +560,17 @@ xul|richlistitem > xul|*.checkbox-check 
 
 html|*.toggle-container-with-text {
   display: flex;
   align-items: center;
 }
 
 xul|radio {
   margin-inline-start: 0;
+  -moz-appearance: none;
 }
 
 xul|*.radio-check {
   -moz-appearance: none;
   width: 23px;
   height: 23px;
   border: 1px solid var(--in-content-box-border-color);
   border-radius: 50%;