Files
servo/tests/wpt/css-tests/css-transforms-1_dev/xhtml1print/ttwf-transform-skewy-001.xht

36 lines
1.5 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Transform Using skewY() function</title>
<link href="mailto:mcorlan@adobe.com" rel="author" title="Mihai Corlan" />
<link href="http://www.w3.org/TR/css-transforms-1/#transform-property" rel="help" />
<link href="reference/ttwf-reftest-transform-skewy-001.xht" rel="match" />
<meta content="Test that the green shape is skew on Y axis by 45 degrees" name="assert" />
<style type="text/css">
.greenSquare {
position: absolute;
top: 100px;
left: 100px;
width: 100px;
height: 100px;
transform: skewY(45deg);
background: green;
}
.redSquare {
position: absolute;
top: 50px;
left: 100px;
}
</style>
</head>
<body>
<p>The test passes if there is a green shape and no red.</p>
<div>
<div class="redSquare">
<svg xmlns:xmlns="http://www.w3.org/2000/svg" xmlns:space="preserve" xmlns:xlink="http://www.w3.org/1999/xlink" height="200px" width="100px" version="1.1" y="0px" x="0px" viewBox="0 0 100 200" xmlns="http://www.w3.org/2000/svg">
<polygon points="100,200 0,99.999 0,0 100,100 " fill="red"></polygon>
</svg>
</div>
<div class="greenSquare"></div>
</div>
</body></html>