mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
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:
parent
b36a78a798
commit
629068c2a7
Notes:
sideshowbarker
2024-07-17 11:06:06 +09:00
Author: https://github.com/rmg-x
Commit: 629068c2a7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/496
3 changed files with 32 additions and 0 deletions
5
Tests/LibWeb/Layout/input/css-line-height-zero.html
Normal file
5
Tests/LibWeb/Layout/input/css-line-height-zero.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html><html><head><style>
|
||||
input {
|
||||
line-height: 0;
|
||||
}
|
||||
</style></head><body><input type="text" value="Hello World">
|
Loading…
Add table
Add a link
Reference in a new issue