mirror of
https://github.com/servo/servo.git
synced 2025-06-16 12:24:29 +00: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.
19 lines
254 B
HTML
19 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>
|
|
|
|
|