4 <title>CSS Test: Left float with radial gradient shape, shape margin, and shape-image-threshold</title>
5 <link rel="author" title="Bear Travis" href="mailto:betravis@adobe.com"/>
6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/>
7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property"/>
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-threshold-property"/>
10 <script src="/resources/testharness.js"></script>
11 <script src="/resources/testharnessreport.js"></script>
12 <script src="../../supported-shapes/support/rounded-rectangle.js"></script>
13 <script src="../../supported-shapes/support/subpixel-utils.js"></script>
14 <script src="../../supported-shapes/support/test-utils.js"></script>
15 <meta name="flags" content="ahem dom"/>
16 <meta name="assert" content="This test verifies that shape-outside respects a
17 simple radial gradient when a shape margin
18 and shape-image threshold are applied."/>
19 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
20 <style type="text/css">
36 shape-outside: radial-gradient(circle, green 10px, rgba(0, 255, 0, 0.75) 25px, rgba(0, 255, 0, 0.25) 25px, transparent 50px);
38 shape-image-threshold: 0.5;
44 The test passes if you see green boxes following the contour of a circle. There should be no red.
46 <div id="test" class="container">
48 <div id="gradient"></div>
49 <span id='test0'>x</span><br/>
50 <span id='test1'>x</span><br/>
51 <span id='test2'>x</span><br/>
52 <span id='test3'>x</span><br/>
53 <span id='test4'>x</span><br/>
54 <span id='test5'>x</span><br/>
55 <span id='test6'>x</span><br/>
56 <span id='test7'>x</span><br/>
57 <span id='test8'>x</span><br/>
58 <span id='test9'>x</span><br/>
64 roundedRect: {x: 0, y: 10, width: 100, height: 100, rx: 50, ry: 50},