mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
38 lines
No EOL
1.7 KiB
HTML
38 lines
No EOL
1.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Test: 'Background-repeat: space' when background positioning area is 'padding-box'</title>
|
|
<link href="http://www.microsoft.com/" rel="author" title="Microsoft">
|
|
<link href="http://www.w3.org/TR/css3-background/#the-background-repeat" rel="help">
|
|
<meta content="" name="flags">
|
|
<meta content="When 'background-repeat: space' and background positioning area is set to 'padding-box' the image is repeated as often within the 'padding-box' without being clipped, the images are spaced out to fill the area and the first and last images touch the edges of the 'padding-box'." name="assert">
|
|
<style type="text/css">
|
|
#reference
|
|
{
|
|
width: 2.9in;
|
|
height: 2.9in;
|
|
padding: 25px;
|
|
border: 25px double black;
|
|
background-clip: padding-box;
|
|
background-image: url("../support/red_space_pb.png");
|
|
}
|
|
#test
|
|
{
|
|
margin-top: -378px;
|
|
width: 2.9in;
|
|
height: 2.9in;
|
|
padding: 25px;
|
|
border: 25px double black;
|
|
background-origin: padding-box;
|
|
background-image: url("support/green_color.png");
|
|
background-repeat: no-repeat;
|
|
background-repeat: space;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if there is no red visible on the page.</p>
|
|
<div id="reference"></div>
|
|
<div id="test"></div>
|
|
|
|
|
|
</body></html> |