tor-browser

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

shape-margin-000.html (1543B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>Shape Margin Valid Values - Length or Percentage</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 be either a length or percentage">
      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_valid_tests = [
     19            {
     20              "actual": "10px",
     21              "expected_inline": "10px",
     22              "expected_computed": "10px"
     23            },
     24            {
     25              "actual": "10%",
     26              "expected_inline": "10%",
     27              "expected_computed": "10%"
     28            }
     29        ];
     30        generate_tests( ParsingUtils.testShapeMarginInlineStyle,
     31                        ParsingUtils.buildTestCases(shape_margin_valid_tests, "inline"));
     32        generate_tests( ParsingUtils.testShapeMarginComputedStyle,
     33                        ParsingUtils.buildTestCases(shape_margin_valid_tests, "computed"));
     34        </script>
     35    </body>
     36 </html>