| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <title>CSS Test: shape-outside on floats with padding</title> | |
| 3 <link rel="author" title="Adobe" href="http://html.adobe.com/"> | |
| 4 <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com"> | |
| 5 <link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#relation-to-box-mod
el-and-float-behavior"> | |
| 6 <meta name="assert" content="This tests if padding on the logical top and bottom
of the float is properly ignored if the shape does not extend into the padding.
"> | |
| 7 <link rel="match" href="shape-outside-floats-padding-003-ref.html"> | |
| 8 <meta name="flags" content="ahem"> | |
| 9 <head> | |
| 10 <style> | |
| 11 .container { | |
| 12 font: 20px/1 Ahem, sans-serif; | |
| 13 width: 100px; | |
| 14 height: 60px; | |
| 15 border: 1px solid black; | |
| 16 color: green; | |
| 17 display: inline-block; | |
| 18 background-color: red; | |
| 19 } | |
| 20 | |
| 21 #float-left { | |
| 22 float: left; | |
| 23 width: 100px; | |
| 24 height: 20px; | |
| 25 shape-outside: rectangle(0, 0, 100%, 100%) content-box; | |
| 26 padding-top: 20px; | |
| 27 padding-bottom: 20px; | |
| 28 } | |
| 29 | |
| 30 #float-right { | |
| 31 float: right; | |
| 32 width: 100px; | |
| 33 height: 20px; | |
| 34 shape-outside: rectangle(0, 0, 100%, 100%) content-box; | |
| 35 padding-top: 20px; | |
| 36 padding-bottom: 20px; | |
| 37 } | |
| 38 </style> | |
| 39 | |
| 40 <body> | |
| 41 <p>This should display two green rectangles. You should not see any red.</p> | |
| 42 <div class="container"> | |
| 43 <div id="float-left"> | |
| 44 XXXXX | |
| 45 </div> | |
| 46 XXXXX XXXXX | |
| 47 </div> | |
| 48 <div class="container"> | |
| 49 <div id="float-right"> | |
| 50 XXXXX | |
| 51 </div> | |
| 52 XXXXX XXXXX | |
| 53 </div> | |
| 54 </body> | |
| OLD | NEW |