mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
32 lines
1.3 KiB
HTML
32 lines
1.3 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: Value of 'auto' is used for y dimension in 'background-size'</title>
|
|
<link href="http://www.microsoft.com/" rel="author" title="Microsoft">
|
|
<link href="http://www.w3.org/TR/css3-background/#the-background-size" rel="help">
|
|
<meta content="" name="flags">
|
|
<meta content="An 'auto' value for y dimension in 'background-size' is resolved by using the image's intrinsic ratio and the size provided for the x dimension." name="assert">
|
|
<style type="text/css">
|
|
.test
|
|
{
|
|
width: 100px;
|
|
height: 100px;
|
|
background-repeat: no-repeat;
|
|
background-image: url("support/red_color.png");
|
|
background-size: 50px auto;
|
|
}
|
|
.reference
|
|
{
|
|
margin-top: -100px;
|
|
background: black;
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if there is no red visible on the page.</p>
|
|
<div class="test"></div>
|
|
<div class="reference"></div>
|
|
|
|
|
|
</body></html> |