summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/transform-origin-001.html
blob: 1951f92079a24deee359abaeaa445d5a83b14d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Test (Transforms): Default transform-origin not top left</title>
    <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-origin-property">
    <meta name="assert" content='A transform-origin of 0% 0% must not result in
    the same rendering as the default of 50% 50%, if a 45-degree rotation is
    applied.'>
    <link rel="mismatch" href="transform-origin-ref-1.html">
    <style>
      div {
        width: 200px;
        height: 100px;
        border: 1px solid black;
        transform: rotate(45deg);
        transform-origin: 0% 0%;
      }
    </style>
  </head>
  <body>
    <div>
      Some text!
    </div>
  </body>
</html>