1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:17:34 +00:00

LibWeb: Add support for CSS image-rendering property

Currently only "auto" and "pixelated" values are supported.
This commit is contained in:
Maciej 2022-02-18 12:21:27 +01:00 committed by Andreas Kling
parent 246b42b635
commit 3e1c1c0b16
11 changed files with 73 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>image-rendering property</title>
</head>
<body>
<h1>image-rendering property</h1>
<p>This image should be blurred:</p>
<img style="width: 256px" src="file:///res/graphics/buggie.png">
<p>This image should be blurred:</p>
<img style="image-rendering: auto; width: 256px" src="file:///res/graphics/buggie.png">
<p>This image should be pixelated:</p>
<img style="image-rendering: pixelated; width: 256px" src="file:///res/graphics/buggie.png">
</body>
</html>

View file

@ -117,6 +117,7 @@
<li><a href="float-3.html">Floating boxes with overflow=hidden</a></li>
<li><a href="clear-1.html">Float clearing</a></li>
<li><a href="overflow.html">Overflow</a></li>
<li><a href="image-rendering.html">image-rendering property</a></li>
<li><h3>Features</h3></li>
<li><a href="css.html">Basic functionality</a></li>
<li><a href="colors.html">css colors</a></li>