summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html
blob: 3739265b23d22e39f2e2acdc90d94c583b36f4f9 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
</head>

<body>
  <svg width="200" height="200">
    <foreignObject x="0" y="0" width="200" height="200">
      <div style="width: 200px; height: 200px;"></div>
    </foreignObject>
  </svg>
  <svg width="200" height="200">
    <foreignObject x="0" y="0" width="200" height="200">
      <div style="width: 200px; height: 200px; background: green"></div>
    </foreignObject>
  </svg>
  <svg width="200" height="200">
    <foreignObject x="0" y="0" width="200" height="200">
      <div style="width: 200px; height: 200px;"></div>
    </foreignObject>
  </svg>
  <svg width="200" height="200">
    <foreignObject x="0" y="0" width="200" height="200">
      <div style="width: 200px; height: 200px; background: green"></div>
    </foreignObject>
  </svg>

  <!-- make sure masking actually works -->
  <svg width="200" height="200">
      <rect x="0" y="0" width="100" height="50" fill="green"></rect>
      <rect x="0" y="100" width="100" height="50" fill="green"></rect>
  </svg>
  <svg width="200" height="200">
      <rect x="0" y="0" width="100" height="50" fill="green"></rect>
      <rect x="0" y="100" width="100" height="50" fill="green"></rect>
  </svg>

  <!-- make sure masking works on active content -->
  <svg width="200" height="200">
    <rect x="0" y="0" width="100" height="50" fill="green"></rect>
    <rect x="0" y="100" width="100" height="50" fill="green"></rect>
  </svg>
  <svg width="200" height="200">
    <rect x="0" y="0" width="100" height="50" fill="green"></rect>
    <rect x="0" y="100" width="100" height="50" fill="green"></rect>
  </svg>
</body>
</html>