summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/transform-descendant-001.html
blob: 7fef84180e7ad7c1bdb1f2e24b57fd761f28714d (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
28
29
30
31
32
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Test (Transforms): Transform Affects Descendant</title>
    <link rel="author" title="Clint Talbert" href="mailto:ctalbert@mozilla.com">
    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
    <link rel="reviewer" title="Apple Inc." href="http://www.apple.com">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
    <meta name="assert" content='This just tests that a transform on a
    container div moves its contents, not just the div itself.'>
    <link rel="match" href="transform-descendant-ref.html">
    <style>
      body > div {
        background: green;
        width: 100px;
        height: 100px;
      }
      span {
        background: yellow;
      }
      body > div > div {
        transform: translate(20px, 150px);
      }
    </style>
  </head>
  <body>
    <div>
      <div><span>span 1</span></div>
    </div>
    <span>span 2</span>
  </body>
</html>