summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/mask-image/mask-clip-7.html
blob: 1c0d8e1dc4ae5be4ca528a7d8f71a7e4fff4f30e (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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>CSS Masking: mask-clip: no-clip should not clip in the presence of border-radius</title>
    <link rel="help" href="http://www.w3.org/TR/css-masking-1/#the-mask-clip">
    <link rel="match" href="mask-clip-7-ref.html">
    <meta name="assert" content="mask-clip: no-clip with border-radius should not clip.">
    <meta content="ahem" name="flags">
    <link rel="stylesheet" href="/fonts/ahem.css" />
    <style>
      div.mask {
        mask-image: linear-gradient(black, black);
        mask-clip: no-clip;
        background-color: purple;
        width: 40px;
        height: 20px;
        border-radius: 5px;
        position: relative;
      }
      span.mask {
        font: 20px/1 Ahem;
        line-height: 20px;
        mask-image: linear-gradient(black, black);
        mask-clip: no-clip;
        color: purple;
        border-radius: 5px;
        position: relative;
      }
      .unclipped-child {
        position: absolute;
        top: -6px;
        left: -6px;
        width: 52px;
        height: 32px;
        background: purple;
      }
    </style>
  </head>
  <body>
    <div class="mask"><div class="unclipped-child"></div></div>
    <br>
    <span class="mask">XX<span class="unclipped-child"></span></span>
  </body>
</html>