mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
24 lines
1.0 KiB
HTML
24 lines
1.0 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): rotatex() With Preserve-3D</title>
|
|
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#transform-style-property" rel="help" />
|
|
<meta content="This tests that two rotations of 22.5deg
|
|
properly add when preserve-3d is used. The result, a 45deg rotation around
|
|
the X-axis, should be equivalent to shrinking the height by a factor of
|
|
sqrt(2), i.e., 1.41421356...." name="assert" />
|
|
<link href="reference/transform-lime-square-ref.xht" rel="match" />
|
|
<style>
|
|
div {
|
|
transform: rotatex(22.5deg);
|
|
transform-origin: top;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="transform-style: preserve-3d">
|
|
<div style="height: 141.421356px; width: 100px; background: lime"></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |