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