1
Fork 0
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:
Andreas Kling 2023-09-15 15:29:31 +02:00
parent 4d71f4edc4
commit 23569f8690
3 changed files with 44 additions and 2 deletions

View 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>