mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
`background-size` per CSS-BACKGROUNDS § 3.9. Nearest neighbor interpolation is used for `crisp-edges`, like Firefox. A note has been added that we could do better if we wanted to. Multiple backgrounds are not yet supported.
20 lines
254 B
HTML
20 lines
254 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
img {
|
|
image-rendering: -moz-crisp-edges; /* for comparison with Firefox */
|
|
image-rendering: pixelated;
|
|
}
|
|
html, body {
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<img src=background_size.png>
|
|
</body>
|
|
</html>
|
|
|
|
|