summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/clip-path/reference/clip-path-path-001-ref.html
blob: afc1d18f204e9fd9a26f35711bb3e04ac4473d67 (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
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE html>
<html>
<head>
  <title>CSS Masking: Reference for clip-path's path function with nonzero</title>
  <style type="text/css">
    #rect {
      width: 100px;
      height: 100px;
      background-color: green;
      clip-path: url("#clip");
    }
  </style>
</head>
<body>
  <p>The test passes if there are a green filled rect.</p>
  <div id="rect"></div>
  <svg height="0" width="0">
    <defs>
      <clipPath id="clip">
        <path clip-rule="nonzero" d="M10,10h80v80h-80zM25,25h50v50h-50z"/>
      </clipPath>
    </defs>
  </svg>
</body>
</html>