LibWeb: Don't let input element placeholders influence line-height

Before this change, we transferred the input element's line-height to
both the editable text *and* the placeholder. This caused some strange
doubling of the effective line-height when the editable text was empty,
pushing down the placeholder.
This commit is contained in:
Andreas Kling 2024-10-08 07:45:22 +02:00 committed by Andreas Kling
commit 13ba491924
Notes: github-actions[bot] 2024-10-08 06:12:59 +00:00
5 changed files with 39 additions and 3 deletions

View file

@ -45,6 +45,7 @@ textarea {
input::placeholder, textarea::placeholder {
color: GrayText;
line-height: initial;
}
button, input[type=submit], input[type=button], input[type=reset], select {