Bug 418833 - Remove !important padding and border-radius rules for checkbox and radio form controls. r=tnikkel
authorMike Conley <mconley@mozilla.com>
Fri, 21 Oct 2016 14:07:43 -0400
changeset 323626 a9da196a78847a286f46b2e818ea1f18c43ac9ec
parent 323625 eecb0af8a88fdeb9d8ea84b8a6eda6944230807f
child 323627 ec772ba1b1d931df819b4bb4896b1493976c67be
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewerstnikkel
bugs418833
milestone53.0a1
Bug 418833 - Remove !important padding and border-radius rules for checkbox and radio form controls. r=tnikkel MozReview-Commit-ID: 86X3PHxmKFg
layout/style/res/forms.css
--- a/layout/style/res/forms.css
+++ b/layout/style/res/forms.css
@@ -538,43 +538,43 @@ input[type="file"]:dir(rtl) > xul|label 
 
 /* radio buttons */
 input[type="radio"] {
   -moz-appearance: radio;
   margin-block-start: 3px;
   margin-block-end: 0px;
   margin-inline-start: 5px;
   margin-inline-end: 3px;
-  border-radius: 100% !important;
+  border-radius: 100%;
 }
 
 /* check boxes */
 input[type="checkbox"] {
   -moz-appearance: checkbox;
   margin-block-start: 3px;
   margin-block-end: 3px;
   margin-inline-start: 4px;
   margin-inline-end: 3px;
-  border-radius: 0 !important;
+  border-radius: 0;
 }
 
 /* common features of radio buttons and check boxes */
 
 /* NOTE: The width, height, border-width, and padding here must all
    add up the way nsFormControlFrame::GetIntrinsic(Width|Height)
    expects them to, or they will not come out with total width equal
    to total height on sites that set their 'width' or 'height' to 'auto'.
    (Should we maybe set !important on width and height, then?)  */
 input[type="radio"],
 input[type="checkbox"] {
   box-sizing: border-box;
   inline-size: 13px;
   block-size: 13px;
   cursor: default;
-  padding: 0 !important;
+  padding: 0;
   -moz-binding: none;
   border: 2px inset ThreeDLightShadow;
   background-repeat: no-repeat;
   background-position: center;
 }
 
 input[type="radio"]:disabled,
 input[type="radio"]:disabled:active,