mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
30 lines
1.0 KiB
HTML
30 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html><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.htm" 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> |