summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/scale-transform-overlap-ref.html
blob: 4750764ae93092e7b7e9f7d151eb1b7904c32ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<head>
  <title>CSS Test (Transforms): Tests overlap testing + clipping + scale transforms + compositing.</title>
    <link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/">
</head>
<style>
  div {
    position: absolute;
    width: 50px;
    height: 50px;
    transform-origin: 0px 0px;
  }
</style>
<div style="width: 250px; height: 100px; transform: translate(-250px, 50px) scale(1.8, 1.8);">
  <div style="transform: translate(160px, 0px)">
    <div style="background: lightblue"></div>
    <div style="background: green; left: 10px; top: 10px;"></div>
  </div>
</div>