tor-browser

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

shape-outside-polygon-005.html (3151B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>Shape Outside Polygon Valid Points</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="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/#funcdef-polygon">
      9        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
     10        <meta name="assert" content="A polygon's vertices can be in signed positive/negative or decimal/non-decimal format">
     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 valid_polygon_points_tests = [
     21                {
     22                  "actual": "polygon(+1px +2px, +3px +4px, +5px +6px)",
     23                  "expected_inline": "polygon(1px 2px, 3px 4px, 5px 6px)",
     24                  "expected_computed": "polygon(1px 2px, 3px 4px, 5px 6px)"
     25                },
     26                {
     27                  "actual": "polygon(-1px -2px, -3px -4px, -5px -6px)",
     28                  "expected_inline": "polygon(-1px -2px, -3px -4px, -5px -6px)",
     29                  "expected_computed": "polygon(-1px -2px, -3px -4px, -5px -6px)"
     30                },
     31                {
     32                  "actual": "polygon(+1px +2px, -3px -4px, +5px +6px)",
     33                  "expected_inline": "polygon(1px 2px, -3px -4px, 5px 6px)",
     34                  "expected_computed": "polygon(1px 2px, -3px -4px, 5px 6px)"
     35                },
     36                {
     37                  "actual": "polygon(-1px -2px, +3px +4px, -5px -6px)",
     38                  "expected_inline": "polygon(-1px -2px, 3px 4px, -5px -6px)",
     39                  "expected_computed": "polygon(-1px -2px, 3px 4px, -5px -6px)"
     40                },
     41                {
     42                  "actual": "polygon(1.0px 2.22px, 3.40px 4.555px, 5.607px 6.99px)",
     43                  "expected_inline": "polygon(1px 2.22px, 3.4px 4.555px, 5.607px 6.99px)",
     44                  "expected_computed": "polygon(1px 2.22px, 3.4px 4.555px, 5.607px 6.99px)"
     45                },
     46                {
     47                  "actual": "polygon(+1.0px -2.22px, +3.40px -4.550px, 5.67px -6.99px)",
     48                  "expected_inline": "polygon(1px -2.22px, 3.4px -4.55px, 5.67px -6.99px)",
     49                  "expected_computed": "polygon(1px -2.22px, 3.4px -4.55px, 5.67px -6.99px)"
     50                }
     51            ];
     52            generate_tests( ParsingUtils.testInlineStyle,
     53                            ParsingUtils.buildTestCases(valid_polygon_points_tests, "inline") );
     54            generate_tests( ParsingUtils.testComputedStyle,
     55                            ParsingUtils.buildTestCases(valid_polygon_points_tests, "computed") );
     56        </script>
     57    </body>
     58 </html>