aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/transform-origin-005.xht
blob: 61c98d9370d5e78007e20315aa7c065ea741e9aa (plain) (blame)
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
28
29
30
31
32
<!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-origin percentages 3</title>
    <link href="mailto:keith@keithschwarz.com" rel="author" title="Keith Schwarz" />
    <link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
    <link href="http://www.w3.org/TR/css-transforms-1/#transform-origin-property" rel="help" />
    <meta content="A transform-origin of 50% 51px must result in
    the same rendering as the default of 50% 50% in this case.  The content box
    is 200x100px, so with a 1px border, the border box is 202x102px.
    transform-origin is computed relative to the border box.  (Note: an
    implementation that incorrectly computes transform-origin percentages
    relative to the content box would fail this test by only a few pixels, so
    care is needed in checking that the test and reference renderings match
    exactly.)" name="assert" />
    <link href="reference/transform-origin-ref-2.xht" rel="match" />
    <style>
      div {
        width: 200px;
        height: 100px;
        border: 1px solid black;
        transform: rotate(45deg);
        transform-origin: 50% 51px;
      }
    </style>
  </head>
  <body>
    <div>
      Some text!
    </div>
  

</body></html>