tor-browser

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

shape-outside-circle-006.html (5184B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>Shape Outside Circle Radii - positive/negative, decimal/non-decimal</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-circle">
      9        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
     10        <meta name="assert" content="A circle's radius may be in signed positive or decimal/non-decimal format. Negative
     11                                     radii are invalid.">
     12        <meta name="flags" content="ahem dom">
     13        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1">
     14        <script src="/resources/testharness.js"></script>
     15        <script src="/resources/testharnessreport.js"></script>
     16        <script src="support/parsing-utils.js"></script>
     17    </head>
     18    <body>
     19        <div id="log"></div>
     20        <script type="text/javascript">
     21             var valid_circle_radii_tests = [
     22                {
     23                  "actual": "circle(+10px at 50% 50%)",
     24                  "expected_inline": "circle(10px at 50% 50%)",
     25                  "expected_computed": "circle(10px at 50% 50%)"
     26                },
     27                {
     28                  "actual": "circle(+10.00px at 50% 50%)",
     29                  "expected_inline": "circle(10px at 50% 50%)",
     30                  "expected_computed": "circle(10px at 50% 50%)"
     31                },
     32                {
     33                  "actual": "circle(+20.340px at 50% 50%)",
     34                  "expected_inline": "circle(20.34px at 50% 50%)",
     35                  "expected_computed": "circle(20.34px at 50% 50%)"
     36                },
     37                {
     38                  "actual": "circle(+30.5px at 50% 50%)",
     39                  "expected_inline": "circle(30.5px at 50% 50%)",
     40                  "expected_computed": "circle(30.5px at 50% 50%)"
     41                },
     42                {
     43                  "actual": "circle(+10% at 50% 50%)",
     44                  "expected_inline": "circle(10% at 50% 50%)",
     45                  "expected_computed": "circle(10% at 50% 50%)"
     46                },
     47                {
     48                  "actual": "circle(+10.00% at 50% 50%)",
     49                  "expected_inline": "circle(10% at 50% 50%)",
     50                  "expected_computed": "circle(10% at 50% 50%)"
     51                },
     52                {
     53                  "actual": "circle(+20.350% at 50% 50%)",
     54                  "expected_inline": "circle(20.35% at 50% 50%)",
     55                  "expected_computed": "circle(20.35% at 50% 50%)"
     56                },
     57                {
     58                  "actual": "circle(+30.5% at 50% 50%)",
     59                  "expected_inline": "circle(30.5% at 50% 50%)",
     60                  "expected_computed": "circle(30.5% at 50% 50%)"
     61                },
     62                {
     63                  "actual": "circle(+10px)",
     64                  "expected_inline": "circle(10px)",
     65                  "expected_computed": "circle(10px)"
     66                },
     67                {
     68                  "actual": "circle(+10.00px)",
     69                  "expected_inline": "circle(10px)",
     70                  "expected_computed": "circle(10px)"
     71                },
     72                {
     73                  "actual": "circle(+20.340px)",
     74                  "expected_inline": "circle(20.34px)",
     75                  "expected_computed": "circle(20.34px)"
     76                },
     77                {
     78                  "actual": "circle(+30.5px)",
     79                  "expected_inline": "circle(30.5px)",
     80                  "expected_computed": "circle(30.5px)"
     81                },
     82                {
     83                  "actual": "circle(+10%)",
     84                  "expected_inline": "circle(10%)",
     85                  "expected_computed": "circle(10%)"
     86                },
     87                {
     88                  "actual": "circle(+10.00%)",
     89                  "expected_inline": "circle(10%)",
     90                  "expected_computed": "circle(10%)"
     91                },
     92                {
     93                  "actual": "circle(+20.350%)",
     94                  "expected_inline": "circle(20.35%)",
     95                  "expected_computed": "circle(20.35%)"
     96                },
     97                {
     98                  "actual": "circle(+30.5%)",
     99                  "expected_inline": "circle(30.5%)",
    100                  "expected_computed": "circle(30.5%)"
    101                }
    102            ];
    103            invalid_circle_radii_tests = [
    104                {"name": "circle(-20px)"},
    105                {"name": "circle(-20.340px)"}
    106            ];
    107            generate_tests( ParsingUtils.testInlineStyle,
    108                            ParsingUtils.buildTestCases(valid_circle_radii_tests, 'inline') );
    109            generate_tests( ParsingUtils.testComputedStyle,
    110                            ParsingUtils.buildTestCases(valid_circle_radii_tests, 'computed') );
    111            generate_tests( ParsingUtils.testInlineStyle,
    112                            ParsingUtils.buildTestCases(invalid_circle_radii_tests) );
    113        </script>
    114    </body>
    115 </html>