mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:27:35 +00:00
LibWeb: Resolve viewport-relative <img sizes> values
We still don't know how to resolve font-relative lengths in <img sizes> since we don't always have font size information available at this stage in the pipeline, but we can at least handle viewport-relative lengths. This fixes an issue on many websites where low-resolution images were loaded (appropriate for a small viewport) even when the viewport is big.
This commit is contained in:
parent
ae5313d33c
commit
0103940cee
4 changed files with 25 additions and 1 deletions
|
@ -0,0 +1,6 @@
|
|||
<!doctype html>
|
||||
<img
|
||||
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgaGD4DwAChAGAZM0bBgAAAABJRU5ErkJggg=="
|
||||
width="400"
|
||||
height="400"
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue