mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
32 lines
989 B
HTML
32 lines
989 B
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Test (Transforms): Transform Affects Descendant</title>
|
|
<link href="mailto:ctalbert@mozilla.com" rel="author" title="Clint Talbert">
|
|
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor">
|
|
<link href="http://www.apple.com" rel="reviewer" title="Apple Inc.">
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help">
|
|
<meta content="This just tests that a transform on a
|
|
container div moves its contents, not just the div itself." name="assert">
|
|
<link href="reference/transform-descendant-ref.htm" rel="match">
|
|
<style>
|
|
body > div {
|
|
background: green;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
span {
|
|
background: yellow;
|
|
}
|
|
body > div > div {
|
|
transform: translate(20px, 150px);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<div><span>span 1</span></div>
|
|
</div>
|
|
<span>span 2</span>
|
|
|
|
|
|
</body></html> |