summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/transform3d-preserve3d-006.html
blob: b7c178f2fc9ea29c6970e466b4e480b249c1503d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Test (Transforms): Two rotatex(), No Preserve-3D</title>
    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-2/#transform-style-property">
    <meta name="assert" 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.">
    <meta name="fuzzy" content="maxDifference=0-55;totalPixels=0-299">
    <link rel="match" href="transform-lime-square-ref.html">
  </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>