From ba3e6cf8d072f4665db8371174560034ea01fb4e Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Thu, 14 Dec 2000 15:18:45 +0000 Subject: [PATCH] The changes to the select are to bring it back inline with what the rules were before they were optimized The checkbox changes are to give it margins in standard mode and themake the vertical-align bottom so it is positioned correctly on the line. Bug 62445, Bug 62350 r=kmcclusk, sr=buster git-svn-id: svn://10.0.0.236/trunk@83628 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/document/src/forms.css | 16 ++++++++++------ mozilla/layout/style/forms.css | 16 ++++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/mozilla/layout/html/document/src/forms.css b/mozilla/layout/html/document/src/forms.css index 020e5da8aa6..677c0f39536 100644 --- a/mozilla/layout/html/document/src/forms.css +++ b/mozilla/layout/html/document/src/forms.css @@ -107,6 +107,13 @@ select { -moz-box-sizing: border-box; } +select[size] { + padding: 1px 0 1px 0; +} +select[size="1"] { + padding: 0; +} + select > input[type="button"] { position: static ! important; white-space: nowrap; @@ -148,11 +155,7 @@ option { -moz-user-focus: none; } -select[size] > option { - padding: 0 5px 0 5px; -} - -select > option, select[size="1"] > option { +select > option { padding: 0 5px 0 3px; } @@ -252,8 +255,9 @@ input[type="checkbox"] { width: 13px; height: 13px; cursor: default; - vertical-align: baseline; + vertical-align: bottom; -moz-binding: none; + margin: 3px 4px 3px 4px; } /* common features of radio buttons and check boxes */ diff --git a/mozilla/layout/style/forms.css b/mozilla/layout/style/forms.css index 020e5da8aa6..677c0f39536 100644 --- a/mozilla/layout/style/forms.css +++ b/mozilla/layout/style/forms.css @@ -107,6 +107,13 @@ select { -moz-box-sizing: border-box; } +select[size] { + padding: 1px 0 1px 0; +} +select[size="1"] { + padding: 0; +} + select > input[type="button"] { position: static ! important; white-space: nowrap; @@ -148,11 +155,7 @@ option { -moz-user-focus: none; } -select[size] > option { - padding: 0 5px 0 5px; -} - -select > option, select[size="1"] > option { +select > option { padding: 0 5px 0 3px; } @@ -252,8 +255,9 @@ input[type="checkbox"] { width: 13px; height: 13px; cursor: default; - vertical-align: baseline; + vertical-align: bottom; -moz-binding: none; + margin: 3px 4px 3px 4px; } /* common features of radio buttons and check boxes */