blob: e8b0594c18168e65c19888df8bbde5ced504b985 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<!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 Test (Transforms): Fixed Background</title>
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
<link href="http://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help" />
<meta content=""Fixed backgrounds are affected by any
transform specified for the root element, and not by any other transforms."
Thus if we have a div that's 100px square aligned at the top left of
the page, giving it a fixed background and translating it 50px down and
right should be the same as giving it a non-fixed background that's
translated 50px down and right." name="assert" />
<meta content="svg" name="flags" />
<link href="reference/transform-fixed-bg-ref.xht" rel="match" />
<style>
body {
margin: 0;
}
div {
background: url(support/transform-triangle-left.svg) fixed;
width: 100px;
height: 100px;
transform: translate(50px, 50px);
}
</style>
</head>
<body>
<div></div>
</body></html>
|