tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

offset-shorthand.html (1208B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Motion Path Module Level 1: offset sets longhands</title>
      6 <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-shorthand">
      7 <meta name="assert" content="offset supports the full grammar from the spec.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/shorthand-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 test_shorthand_value('offset', 'left bottom ray(0rad closest-corner) 10px auto 30deg / right bottom', {
     15  'offset-position': 'left bottom',
     16  'offset-path': 'ray(0rad closest-corner)',
     17  'offset-distance': '10px',
     18  'offset-rotate': 'auto 30deg',
     19  'offset-anchor': 'right bottom',
     20 });
     21 
     22 test_shorthand_value('offset', 'top right / top left', {
     23  'offset-position': 'right top',
     24  'offset-path': 'none',
     25  'offset-distance': '0px',
     26  'offset-rotate': 'auto',
     27  'offset-anchor': 'left top',
     28 });
     29 
     30 test_shorthand_value('offset', 'path("M 0 0 H 2") reverse 50%', {
     31  'offset-position': 'normal',
     32  'offset-path': 'path("M 0 0 H 2")',
     33  'offset-distance': '50%',
     34  'offset-rotate': 'reverse',
     35  'offset-anchor': 'auto',
     36 });
     37 </script>
     38 </body>
     39 </html>