mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
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.
7 lines
188 B
HTML
7 lines
188 B
HTML
<!doctype html><style>
|
|
* { outline: 1px solid black; }
|
|
input {
|
|
line-height: 5em;
|
|
vertical-align: middle;
|
|
}
|
|
</style><body><input placeholder="placeholder"/>text
|