mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
36 lines
1.5 KiB
HTML
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 skewX() 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-skewx-001.xht" rel="match" />
|
|
<meta content="Test that the green shape is skew on X axis by 45 degrees" name="assert" />
|
|
<style type="text/css">
|
|
.greenSquare {
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 100px;
|
|
width: 100px;
|
|
height: 100px;
|
|
transform: skewX(45deg);
|
|
background: green;
|
|
}
|
|
.redSquare {
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 50px;
|
|
}
|
|
</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="100px" width="200px" version="1.1" y="0px" x="0px" viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="200,100 100,100 0,0 100,0 " fill="red"></polygon>
|
|
</svg>
|
|
</div>
|
|
<div class="greenSquare"></div>
|
|
</div>
|
|
|
|
</body></html> |