mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Transform Using translateX() 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-translatex-001.htm" rel="match">
|
|
<meta content="Test that the green square is moved on X axis 100px" name="assert">
|
|
<style type="text/css">
|
|
.greenSquare {
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 0px;
|
|
width: 100px;
|
|
height: 100px;
|
|
transform: translateX(100px);
|
|
background: green;
|
|
}
|
|
.redSquare {
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 100px;
|
|
width: 98px;
|
|
height: 98px;
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if there is a green square and no red.</p>
|
|
<div>
|
|
<div class="redSquare"></div>
|
|
<div class="greenSquare"></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |