servo/tests/ref/background_image_position_ref.html
Glenn Watson 29c3819246 Partial fix for background images on wikipedia pages.
This fixes the visual artifacts seen at the top of wikipedia pages by:
 - Setting clipping rect to avoid images going outside their bounds.
 - Handling case of background-position being >= 100% such that wrapping is required.

However, the gradient is not currently visible on wikipedia. This relies on bug #1997 being fixed.
2014-09-11 16:25:04 +10:00

18 lines
336 B
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
div {
width: 20px;
height: 20px;
background-color: red;
}
</style>
</head>
<body>
<div></div>
</body>
</html>