| Geoffrey Sneddon | f106b6f | 2015-12-07 15:16:26 | [diff] [blame^] | 1 | <!DOCTYPE HTML> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>CSS Exclusions Test: wrap-flow property set to clear</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="The text should flow above and below the exclusion, and not on either side"> |
| 9 | <script src="/resources/testharness.js"></script> |
| 10 | <script src="/resources/testharnessreport.js"></script> |
| 11 | <script src="resources/helper.js"></script> |
| 12 | <style> |
| 13 | * { |
| 14 | margin: 0px; |
| 15 | padding: 0px; |
| 16 | } |
| 17 | .exclusion { |
| 18 | wrap-flow: clear; |
| 19 | position: absolute; |
| 20 | top: 40px; |
| 21 | left: 50px; |
| 22 | width: 110px; |
| 23 | height: 110px; |
| 24 | background: blue; |
| 25 | } |
| 26 | #content { |
| 27 | width: 400px; |
| 28 | height: 200px; |
| 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"><span id="linesAbove">A<BR>B<BR>C<BR></span><span id="linesBelow">D<BR>E</span> |
| 38 | </div> |
| 39 | |
| 40 | <div id="log"></div> |
| 41 | |
| 42 | <script type="text/javascript"> |
| 43 | test(function() {assert_equals(checkLinePos("linesBelow",150,"top"), true)}, "Verify top of the 'linesBelow' span is positioned correctly"); |
| 44 | </script> |
| 45 | </body> |
| Jacob Goldstein | 416fbe5 | 2012-05-08 21:44:11 | [diff] [blame] | 46 | </html> |