LibWeb: Ensure normal line-height on HTMLInputElement

Previously, setting CSS `line-height: 0` on an `input` element would
result in no text being displayed.

Other browsers handle this by setting the minimum height to the
"normal" value for single line inputs.
This commit is contained in:
rmg-x 2024-07-07 13:15:30 -05:00 committed by Andreas Kling
commit 629068c2a7
Notes: sideshowbarker 2024-07-17 11:06:06 +09:00
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,5 @@
<!DOCTYPE html><html><head><style>
input {
line-height: 0;
}
</style></head><body><input type="text" value="Hello World">