mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00:00
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:
parent
e1eeb93cc6
commit
13ba491924
Notes:
github-actions[bot]
2024-10-08 06:12:59 +00:00
Author: https://github.com/awesomekling
Commit: 13ba491924
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1675
5 changed files with 39 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue