From f82de7c2e474658768254499336b43d32bef8b6b Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 6 Nov 2002 02:12:18 +0000 Subject: [PATCH] line-height settings should not affect internal layout of form controls. Bug 82265, r=jkeiser, sr=dbaron --- layout/html/document/src/forms.css | 6 ++++++ layout/style/forms.css | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/layout/html/document/src/forms.css b/layout/html/document/src/forms.css index d8bacea650f..c2ea587900a 100644 --- a/layout/html/document/src/forms.css +++ b/layout/html/document/src/forms.css @@ -79,6 +79,7 @@ input { background-color: -moz-Field; color: -moz-FieldText; font: -moz-field; + line-height: normal !important; text-align: start; text-transform: none; vertical-align: text-bottom; @@ -94,6 +95,7 @@ textarea { background-color: -moz-Field; color: -moz-FieldText; font: medium -moz-fixed; + line-height: normal !important; text-align: start; text-transform: none; vertical-align: text-bottom; @@ -121,6 +123,7 @@ select { background-color: -moz-Field; color: -moz-FieldText; font: -moz-list; + line-height: normal !important; white-space: nowrap; text-align: start; vertical-align: text-bottom; @@ -186,6 +189,7 @@ select:-moz-dummy-option { option { display: block; min-height: 1em; + line-height: normal !important; -moz-user-select: none; -moz-user-focus: none; } @@ -202,6 +206,7 @@ option:checked { optgroup { display: block; font: -moz-list; + line-height: normal !important; font-style: italic; font-weight: bold; -moz-user-select: none; @@ -384,6 +389,7 @@ input[type="submit"] { background-color: ButtonFace; color: ButtonText; font: -moz-button; + line-height: normal !important; white-space: pre; vertical-align: text-bottom; cursor: default; diff --git a/layout/style/forms.css b/layout/style/forms.css index d8bacea650f..c2ea587900a 100644 --- a/layout/style/forms.css +++ b/layout/style/forms.css @@ -79,6 +79,7 @@ input { background-color: -moz-Field; color: -moz-FieldText; font: -moz-field; + line-height: normal !important; text-align: start; text-transform: none; vertical-align: text-bottom; @@ -94,6 +95,7 @@ textarea { background-color: -moz-Field; color: -moz-FieldText; font: medium -moz-fixed; + line-height: normal !important; text-align: start; text-transform: none; vertical-align: text-bottom; @@ -121,6 +123,7 @@ select { background-color: -moz-Field; color: -moz-FieldText; font: -moz-list; + line-height: normal !important; white-space: nowrap; text-align: start; vertical-align: text-bottom; @@ -186,6 +189,7 @@ select:-moz-dummy-option { option { display: block; min-height: 1em; + line-height: normal !important; -moz-user-select: none; -moz-user-focus: none; } @@ -202,6 +206,7 @@ option:checked { optgroup { display: block; font: -moz-list; + line-height: normal !important; font-style: italic; font-weight: bold; -moz-user-select: none; @@ -384,6 +389,7 @@ input[type="submit"] { background-color: ButtonFace; color: ButtonText; font: -moz-button; + line-height: normal !important; white-space: pre; vertical-align: text-bottom; cursor: default;