shape-outside-circle-010.html (2001B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shape Outside Circle args - calc() 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="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 <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation"> 11 <meta name="assert" content="A circle's arguments may be in calc() values."> 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 circle_calc_tests = []; 22 ParsingUtils.calcTestValues.forEach(function(value) { 23 testCase = ['circle('+ value[0] + ' at 50% 50%)', 'circle('+ value[1] + ' at 50% 50%)']; 24 if(Object.prototype.toString.call( value[2] ) === '[object Array]' && value[2].length == 2) { 25 testCase.push([ 'circle('+ value[2][0] + ' at 50% 50%)', 'circle('+ value[2][1] + ' at 50% 50%)']); 26 } else { 27 testCase.push('circle('+ value[2] + ' at 50% 50%)'); 28 } 29 circle_calc_tests.push(testCase); 30 }); 31 generate_tests(ParsingUtils.testInlineStyle, ParsingUtils.buildCalcTests(circle_calc_tests, 'value')); 32 generate_tests(ParsingUtils.testComputedStyle, ParsingUtils.buildCalcTests(circle_calc_tests, 'computed')); 33 </script> 34 </body> 35 </html>