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
--- 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%;