aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/xhtml1print/transform-abspos-004.xht
blob: 1558a16b9268df6a6ce786b9d44448f1dfc25588 (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
33
34
35
36
37
38
39
40
41
42
<!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): Containing Block for Absolute Positioning (bottom/right)</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.apple.com" rel="reviewer author" title="Apple Inc." />
    <link href="http://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help" />
    <meta content="&quot;In the HTML namespace, any value other than
    'none' for the transform results in the creation of . . . a
    containing block.&quot;  This means absolutely positioned elements need to be
    rooted at a transformed ancestor, just as though it had non-static
    position.  This test differs from transform-abspos-001.html in that it uses the
    right/bottom properties for positioning instead of top/left." name="assert" />
    <link href="reference/transform-abspos-ref.xht" rel="match" />
    <style>
      body &gt; div {
        width: 100px;
        height: 200px;
        transform: translate(50px, 50px);
        background: gold;
      }
      body &gt; div &gt; div {
        width: 200px;
        height: 100px;
        position: absolute;
        right: -150px;
        bottom: 0;
        background: navy;
        color: gold;
      }
    </style>
  </head>
  <body>
    <div>
      A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
      <div>
        0 1 2 3 4 5 6 7 8 9
      </div>
    </div>
  

</body></html>