shape-image-threshold-000.html (2060B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shape Image Threshold - Valid 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="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-threshold-property"> 8 <meta name="assert" content="shape-image-threshold is any valid number and computed the 9 clipped value between 0 and 1."> 10 <meta name="flags" content="ahem dom"> 11 <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"> 12 <script src="/resources/testharness.js"></script> 13 <script src="/resources/testharnessreport.js"></script> 14 <script src="support/parsing-utils.js"></script> 15 </head> 16 <body> 17 <div id="log"></div> 18 <script type="text/javascript"> 19 var shape_image_threshold_valid_tests = [ 20 { 21 "actual": "0.0", 22 "expected_inline": "0", 23 "expected_computed": "0" 24 }, 25 { 26 "actual": ".2", 27 "expected_inline": "0.2", 28 "expected_computed": "0.2" 29 }, 30 { 31 "actual": "0.333", 32 "expected_inline": "0.333", 33 "expected_computed": "0.333" 34 }, 35 { 36 "actual": "1.0", 37 "expected_inline": "1", 38 "expected_computed": "1" 39 }, 40 { 41 "actual": "1.5", 42 "expected_inline": "1.5", 43 "expected_computed": "1" 44 } 45 ]; 46 generate_tests( ParsingUtils.testShapeThresholdInlineStyle, 47 ParsingUtils.buildTestCases(shape_image_threshold_valid_tests, 'inline') ); 48 generate_tests( ParsingUtils.testShapeThresholdComputedStyle, 49 ParsingUtils.buildTestCases(shape_image_threshold_valid_tests, 'computed') ); 50 </script> 51 </body> 52 </html>