OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Test: Left float with radial gradient and percentage shape margin
</title> |
| 5 <link rel="author" title="Bear Travis" href="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-prop
erty"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-prope
rty"/> |
| 9 <meta name="flags" content="ahem dom"/> |
| 10 <meta name="assert" content="This test verifies that shape-outside respects
a |
| 11 simple radial gradient when a percentage margin |
| 12 is applied."/> |
| 13 <style type="text/css"> |
| 14 body { margin: 0; } |
| 15 .container { |
| 16 width: 200px; |
| 17 height: 200px; |
| 18 font-family: Ahem; |
| 19 font-size: 10px; |
| 20 line-height: 1; |
| 21 } |
| 22 #test { |
| 23 color: green; |
| 24 } |
| 25 #gradient { |
| 26 float: left; |
| 27 width: 100px; |
| 28 height: 100px; |
| 29 shape-outside: radial-gradient(circle, green 0px, transparent 40px); |
| 30 shape-margin: 5%; |
| 31 } |
| 32 </style> |
| 33 </head> |
| 34 <body> |
| 35 <p> |
| 36 The test passes if you see green boxes following the contour of a circle
. There should be no red. |
| 37 </p> |
| 38 <div id="test" class="container"> |
| 39 x</br> |
| 40 <div id="gradient"></div> |
| 41 <span id='test0'>x</span><br/> |
| 42 <span id='test1'>x</span><br/> |
| 43 <span id='test2'>x</span><br/> |
| 44 <span id='test3'>x</span><br/> |
| 45 <span id='test4'>x</span><br/> |
| 46 <span id='test5'>x</span><br/> |
| 47 <span id='test6'>x</span><br/> |
| 48 <span id='test7'>x</span><br/> |
| 49 <span id='test8'>x</span><br/> |
| 50 <span id='test9'>x</span><br/> |
| 51 x<br/> |
| 52 </div> |
| 53 <div id="log"></div> |
| 54 <script src="../../../../../../resources/testharness.js"></script> |
| 55 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 56 <script src="../../supported-shapes/support/rounded-rectangle.js"></script> |
| 57 <script src="../../supported-shapes/support/subpixel-utils.js"></script> |
| 58 <script src="../../supported-shapes/support/test-utils.js"></script> |
| 59 <script> |
| 60 verifyTextPoints({ |
| 61 roundedRect: {x: 0, y: 10, width: 100, height: 100, rx: 50, ry:
50}, |
| 62 containerWidth: 200, |
| 63 containerHeight: 200, |
| 64 lineHeight: 10 |
| 65 }, 10, 1); |
| 66 </script> |
| 67 </body> |
| 68 </html> |
OLD | NEW |