tor-browser

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

object-view-box-parsing.html (1235B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS object-view-box: computed values</title>
      6 <link rel="author" title="Khushal Sagar" href="mailto:khushalsagar@chromium.org">
      7 <link rel="help" href="https://drafts.csswg.org/css-images-4/#the-object-view-box">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/parsing-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <div id=target></div>
     14 <script>
     15 test_valid_value('object-view-box', 'inset(10%)');
     16 test_valid_value('object-view-box', 'inset(10px 20px 30px 40px)');
     17 test_valid_value('object-view-box', 'rect(1px 10% 100px 50%)');
     18 test_valid_value('object-view-box', 'rect(auto auto auto auto)');
     19 test_valid_value('object-view-box', 'rect(auto 5px auto 10%)');
     20 test_valid_value('object-view-box', 'xywh(1px 10% 100px 50%)');
     21 
     22 test_invalid_value('object-view-box', 'circle(10px)');
     23 test_invalid_value('object-view-box', 'ellipse(10px 20px)');
     24 test_invalid_value('object-view-box', 'polygon(10px 20px 30px)');
     25 test_invalid_value('object-view-box', 'path("M20,80 L50,20")');
     26 test_invalid_value('object-view-box', 'blah');
     27 test_invalid_value('object-view-box', 'xywh(1px 10%)');
     28 
     29 </script>
     30 </body>
     31 </html>