mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
LibWeb: Allow fractional font sizes in CSS
Fixes an issue where relative font sizes would "snap" to integer sizes in an unpleasant-looking way while resizing on some websites.
This commit is contained in:
parent
4d71f4edc4
commit
23569f8690
3 changed files with 44 additions and 2 deletions
8
Tests/LibWeb/Layout/input/font-fractional-size.html
Normal file
8
Tests/LibWeb/Layout/input/font-fractional-size.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!doctype html><style>
|
||||
.a { font-size: 20.5px; }
|
||||
.b { font-size: 21px; }
|
||||
.c { font-size: 21.5px; }
|
||||
</style>
|
||||
<span class="a">x</span>
|
||||
<span class="b">x</span>
|
||||
<span class="c">x</span>
|
Loading…
Add table
Add a link
Reference in a new issue