+2006-05-08 David Hyatt <hyatt@apple.com>
+
+ Comprehensive box-sizing fix. This patch changes all form controls to
+ have the right box-sizing values (text fields and text areas actually only
+ use border-box in quirks mode now, and image buttons never use border-box).
+
+ Tables are supposed to use border-box box-sizing as well, but that's a scary
+ enough change that I'm saving it for a separate patch.
+
+ Reviewed by mjs
+
+ * css/html4.css:
+ * css/quirks.css:
+
2006-05-06 Darin Adler <darin@apple.com>
Suggested by Mitz. Reviewed and landed by Maciej.
caption {
display: table-caption;
- text-align: -webkit-center
+ text-align: -webkit-center;
+ box-sizing: border-box
}
/* lists */
text-transform: none;
text-indent: 0;
display: inline-block;
- box-sizing: border-box;
}
input[type="hidden"] {
color: ButtonText;
padding: 2px 6px 3px 6px;
border: 2px outset ButtonFace;
- background-color: ButtonFace
+ background-color: ButtonFace;
+ box-sizing: border-box
}
input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, button:disabled {
}
input[type="checkbox"] {
- -webkit-appearance: checkbox
+ -webkit-appearance: checkbox;
+ box-sizing: border-box;
}
input[type="radio"] {
- -webkit-appearance: radio
+ -webkit-appearance: radio;
+ box-sizing: border-box;
+}
+
+select {
+ box-sizing: border-box;
}
/* inline elements */
font-style: normal;
color: -webkit-text;
}
+
+/* This will apply only to text fields, since all other inputs already use border box sizing */
+input:not([type=image]), textarea {
+ box-sizing: border-box;
+}