Files
servo/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/transform-background-004.xht

32 lines
1.2 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 Test (Transforms): Transform of Background Image (nested flip)</title>
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
<link href="http://www.w3.org/TR/css-transforms-1/#transform-property" rel="help" />
<link href="mailto:dschulze@adobe.com" rel="reviewer" title="Dirk Schulze" /> <!-- 2012-04-17 -->
<meta content="Background images fall within the element's
border box, so they need to be transformed along with it. This file tests
that a transform on the parent works correctly, not just on the element
itself." name="assert" />
<meta content="svg" name="flags" />
<link href="reference/transform-background-ref-1.xht" rel="match" />
<style>
div {
width: 200px;
height: 100px;
}
body &gt; div {
transform: scale(-1);
}
body &gt; div &gt; div {
background: url(support/transform-triangle-down.svg);
}
</style>
</head>
<body>
<div>
<div></div>
</div>
</body></html>