summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/motion/offset-path-url-011.html
blob: 84dfe5205bac5a388f87cc83e1d0d4e40324f158 (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
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Motion Path: offset-path:url() reference to non-SVG elements</title>
    <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-url">
    <link rel="match" href="offset-path-url-011-ref.html">
    <meta name="assert" content='This tests that url() references to a non-SVG
      element and behaves as path("m 0 0") instead.'>
    <style>
      #outer {
        position: relative;
        left: 50px;
        top: 50px;
        width: 300px;
        height: 100px;
      }
      #target {
        width: 50px;
        height: 50px;
        background-color: green;
        /* This behaves as 'offset-path: path("m 0 0")' */
        offset-path: url(#outer);
        offset-anchor: 50% 50%;
        offset-distance: 0%;
        border-radius: 50% 50% 0 0;
      }
    </style>
  </head>
  <body>
    <div id="outer">
      <div id="target"></div>
    </div>
  </body>
</html>