tor-browser

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

shape-outside-shape-box-pair-000.html (3155B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>Shape Outside Box Shape and Box Valid Values</title>
      5        <link rel="author" title="Adobe" href="http://html.adobe.com/">
      6        <link rel="author" title="Bear Travis" href="mailto:betravis@adobe.com">
      7        <link rel="reviewer" title="Alan Stearns" href="mailto:stearns@adobe.com"> <!-- 2014-03-04 -->
      8        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
      9        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#typedef-shape-box">
     10        <meta name="assert" content="Shape-outside may be a pair of shape and box values">
     11        <meta name="flags" content="ahem dom">
     12        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1">
     13        <script src="/resources/testharness.js"></script>
     14        <script src="/resources/testharnessreport.js"></script>
     15        <script src="support/parsing-utils.js"></script>
     16    </head>
     17    <body>
     18        <div id="log"></div>
     19        <script type="text/javascript">
     20        var shape_box_valid_tests = [
     21            {
     22              "actual": "polygon(nonzero, 1px 1px) content-box",
     23              "expected_inline": "polygon(1px 1px) content-box",
     24              "expected_computed": "polygon(1px 1px) content-box"
     25            },
     26            {
     27              "actual": "polygon(nonzero, 1px 1px) padding-box",
     28              "expected_inline": "polygon(1px 1px) padding-box",
     29              "expected_computed": "polygon(1px 1px) padding-box"
     30            },
     31            {
     32              "actual": "polygon(nonzero, 1px 1px) border-box",
     33              "expected_inline": "polygon(1px 1px) border-box",
     34              "expected_computed": "polygon(1px 1px) border-box"
     35            },
     36            {
     37              "actual": "polygon(nonzero, 1px 1px) margin-box",
     38              "expected_inline": "polygon(1px 1px)",
     39              "expected_computed": "polygon(1px 1px)"
     40            },
     41            {
     42              "actual": " content-box polygon(nonzero, 1px 1px)",
     43              "expected_inline": "polygon(1px 1px) content-box",
     44              "expected_computed": "polygon(1px 1px) content-box"
     45            },
     46            {
     47              "actual": "padding-box polygon(nonzero, 1px 1px)",
     48              "expected_inline": "polygon(1px 1px) padding-box",
     49              "expected_computed": "polygon(1px 1px) padding-box"
     50            },
     51            {
     52              "actual": "border-box polygon(nonzero, 1px 1px)",
     53              "expected_inline": "polygon(1px 1px) border-box",
     54              "expected_computed": "polygon(1px 1px) border-box"
     55            },
     56            {
     57              "actual": "margin-box polygon(nonzero, 1px 1px)",
     58              "expected_inline": "polygon(1px 1px)",
     59              "expected_computed": "polygon(1px 1px)"
     60            }
     61        ];
     62        generate_tests( ParsingUtils.testInlineStyle,
     63                        ParsingUtils.buildTestCases(shape_box_valid_tests, "inline") );
     64        generate_tests( ParsingUtils.testComputedStyle,
     65                        ParsingUtils.buildTestCases(shape_box_valid_tests, "computed") );
     66        </script>
     67    </body>
     68 </html>