wrap-flow-003.html (2599B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>CSS Exclusions Test: wrap-flow property set to auto</title> 5 <link rel="author" title="Jacob Goldstein" href="mailto:jacobg@adobe.com"> 6 <link rel="help" href="http://www.w3.org/TR/css3-exclusions/#wrap-flow-property"> 7 <meta name="flags" content="ahem dom"> 8 <meta name="assert" content="No exclusion should be created"> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="resources/helper.js"></script> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style> 14 * { 15 margin: 0px; 16 padding: 0px; 17 } 18 .exclusion { 19 wrap-flow: auto; 20 position: absolute; 21 top: 10px; 22 left: 20px; 23 width: 60px; 24 height: 25px; 25 background: blue; 26 } 27 #content { 28 width: 400px; 29 line-height: 12px; 30 font: 12px Ahem; 31 } 32 </style> 33 </head> 34 <body> 35 <div class="exclusion"></div> 36 37 <div id="content"> 38 <span id="line1">ethical beer craft</span><BR> 39 <span id="line2">Fixie pork belly</span><BR> 40 <span id="line3">food truck in marfa</span><BR> 41 <span id="line4">american apparel squid</span> 42 </div> 43 44 <div id="log"></div> 45 46 <script type="text/javascript"> 47 setup(() => { 48 assert_implements(CSS.supports('wrap-flow', 'auto'), "'wrap-flow: auto'"); 49 }, {explicit_done: true}); 50 document.fonts.ready.then(() => { 51 test(function() {assert_equals(checkLinePos("line1",216,"right"), true)}, "Verify right of the 'line1' span is positioned correctly"); 52 test(function() {assert_equals(checkLinePos("line2",192,"right"), true)}, "Verify right of the 'line2' span is positioned correctly"); 53 test(function() {assert_equals(checkLinePos("line3",228,"right"), true)}, "Verify right of the 'line3' span is positioned correctly"); 54 test(function() {assert_equals(checkLinePos("line4",36,"top"), true)}, "Verify top of the 'line4' span is positioned correctly"); 55 test(function() {assert_equals(checkLinePos("line4",264,"right"), true)}, "Verify right of the 'line4' span is positioned correctly"); 56 done(); 57 }); 58 </script> 59 </body> 60 </html>