mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
20 lines
947 B
HTML
20 lines
947 B
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Test (Transforms): Two rotatex(), No 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="rotatex(45deg) or rotatex(-45deg), by itself,
|
|
should both just scale down the element by a factor of sqrt(2) (and perhaps
|
|
shift it, depending on 'transform-origin'). Without 'transform-style:
|
|
preserve-3d', the rotations on parent and child shouldn't cancel, so its
|
|
height should be halved with no other effect." name="assert">
|
|
<link href="reference/transform-lime-square-ref.htm" rel="match">
|
|
</head>
|
|
<body>
|
|
<div style="transform: rotatex(45deg); transform-origin: top">
|
|
<div style="transform: rotatex(-45deg); transform-origin: top;
|
|
height: 200px; width: 100px; background: lime">
|
|
</div></div>
|
|
|
|
|
|
</body></html> |