mirror of
https://github.com/servo/servo
synced 2026-04-30 03:17:15 +02:00
Update CSS tests to revision 939546644b4d333218fd9c2c0f68c60752ff1e95
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user