tor-browser

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

shape-margin-004.html (1389B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>Shape Margin Invalid Values</title>
      5        <link rel="author" title="Adobe" href="http://html.adobe.com/">
      6        <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
      7        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property">
      8        <meta name="assert" content="shape-margin values may only be positive length units.">
      9        <meta name="flags" content="ahem dom">
     10        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1">
     11        <script src="/resources/testharness.js"></script>
     12        <script src="/resources/testharnessreport.js"></script>
     13        <script src="support/parsing-utils.js"></script>
     14    </head>
     15    <body>
     16        <div id="log"></div>
     17        <script type="text/javascript">
     18        var shape_margin_invalid_tests = [
     19            {"name": "-20px"},
     20            {"name": "-.4567px"},
     21            {"name": "nonLength"},
     22            {"name": "10"}
     23        ];
     24        generate_tests( ParsingUtils.testShapeMarginInlineStyle,
     25                        ParsingUtils.buildTestCases(shape_margin_invalid_tests, "inline - invalid"));
     26        generate_tests( ParsingUtils.testShapeMarginComputedStyle,
     27                        ParsingUtils.buildTestCases(shape_margin_invalid_tests, "computed - invalid"));
     28        </script>
     29    </body>
     30 </html>