summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/transform-box/fill-box-002.html
blob: 9044048e387ec7e0a35c053ea1c425d964d4f6c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<title>transform-box: fill-box on an SVG container element</title>
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box">
<link rel="match" href="reference/greensquare200x200.html">
<style>
#container {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(2);
}
</style>
<p>There should be a green 200x200 rectangle below, and no red.</p>
<svg width="200" height="200">
  <rect width="200" height="200" fill="red"/>
  <g id="container">
    <rect x="50" y="50" width="100" height="100" fill="green"/>
  </g>
</svg>