ladybird/Tests/LibWeb/Layout/input/input-placeholder-with-line-height.html
Andreas Kling 13ba491924 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.
2024-10-08 08:12:07 +02:00

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