exclusions-wrap-flow-03.xht (2455B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: wrap-flow:none</title> 5 <link rel="author" title="Vincent Hardy, Adobe Systems" href="mailto:vhardy@adobe.com"/> 6 <link rel="help" href="http://www.w3.org/TR/css3-exclusions/#wrap-flow-property"/> 7 <link rel="match" href="exclusions-wrap-flow-01-ref.xht"/> 8 <meta name="assert" content= 9 "Tests that wrap-flow:start is implemented. The inline boxes defined in the container 10 with the exclusion element should wrap around the left margin edge of the exclusion but 11 not to the right. Inline boxes 12 are flowing to the left of the exclusion element only."/> 13 <style> 14 /*<![CDATA[*/ 15 16 #containing-block { 17 position: relative; 18 width: 400px; 19 background: red; 20 font-size: 0px; /* collapses the 'strut' on each line, see CSS 2.1 section 10.8.1 */ 21 } 22 23 #top-fragment, #left-fragment, #right-fragment, #bottom-fragment-a, #bottom-fragment-b { 24 display: inline-block; 25 background: black; 26 } 27 28 #top-fragment { 29 width: 400px; 30 height: 150px; 31 } 32 33 #bottom-fragment-a { 34 width: 150px; 35 height:150px; 36 } 37 38 #bottom-fragment-b { 39 width: 250px; 40 height: 150px; 41 } 42 43 #left-fragment { 44 width: 150px; 45 height: 100px; 46 } 47 48 #exclusion { 49 position: absolute; 50 wrap-flow: end; 51 top: 150px; 52 left: 150px; 53 width: 100px; 54 height: 100px; 55 background: #0f0; 56 } 57 58 #clear-area { 59 position: absolute; 60 background: #080; 61 top: 150px; 62 left: 0px; 63 width: 150px; 64 height: 100px; 65 z-index: -1; 66 } 67 68 69 /*]]>*/ 70 </style> 71 </head> 72 <body> 73 <p>You should see a light green square centered in a solid 400px by 400px black background with a darker green area extending to the 74 left of the light green area and to the edge of the black background container. You should not see any red background.</p> 75 <div id="containing-block"><div id="top-fragment"></div><div id="left-fragment"></div><div id="exclusion"></div><div id="clear-area"></div><div id="bottom-fragment-a"></div><div id="bottom-fragment-b"></div></div> 76 </body> 77 </html>