| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Wrapping text around multiple floats</title> |
| 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> |
| 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/wrap
ping/001.html" type="text/html"/> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> |
| 8 <meta name="flags" content="ahem animated"/> |
| 9 <style type="text/css"> |
| 10 .ahem { font: 1.25em/1 Ahem; background: yellow; color: navy; } |
| 11 div.ahem { border: solid 1em navy; width: 10em; height: 10em; } |
| 12 pre.ahem { width: 12em; height: 12em; } |
| 13 span { font: 0.75em/1 serif; } |
| 14 |
| 15 body.a .ahem, body.b .ahem { position: absolute; margin: 1em; } |
| 16 body.a div.ahem { display: none; } |
| 17 body.b pre.ahem { display: none; } |
| 18 |
| 19 .aleft { text-align: left; } |
| 20 .aright { text-align: right; } |
| 21 .acenter { text-align: center; } |
| 22 .ajustify { text-align: justify; } |
| 23 |
| 24 .fleft { float: left; } |
| 25 .fright { float: right; } |
| 26 .fleft, .fright { background: navy; } |
| 27 |
| 28 .cleft { clear: left; } |
| 29 .cright { clear: right; } |
| 30 .cleft.cright { clear: both; } |
| 31 |
| 32 .w1 { width: 1em; } .h1 { height: 1em; } |
| 33 .w2 { width: 2em; } .h2 { height: 2em; } |
| 34 .w3 { width: 3em; } .h3 { height: 3em; } |
| 35 .w4 { width: 4em; } .h4 { height: 4em; } |
| 36 .w5 { width: 5em; } .h5 { height: 5em; } |
| 37 |
| 38 </style> |
| 39 </head> |
| 40 <body class="test"> |
| 41 <p>If scripting is supported: there should be only a single static jumble belo
w with the word |
| 42 "Control" blinking steadily. If there are two squares, or if the |
| 43 square is animated, then the test has failed.</p> |
| 44 |
| 45 <p>If scripting is unsupported: there should be two identical |
| 46 patterned squares below.</p> |
| 47 |
| 48 <script type="text/javascript"> |
| 49 var body = document.body; |
| 50 var timer; |
| 51 function toggle() { |
| 52 body.className = body.className == 'a' ? 'b' : 'a'; |
| 53 timer = window.setTimeout(toggle, 500); |
| 54 } |
| 55 toggle(); |
| 56 </script> |
| 57 |
| 58 <p><button onclick="clearTimeout(timer); body.className = 'test';"> Examine </
button></p> |
| 59 |
| 60 <div class="ahem"> |
| 61 1 |
| 62 <div class="fleft w2 h2"></div> |
| 63 222222222 |
| 64 <div class="fleft w1 h2"></div> |
| 65 <div class="fleft w1 h5"></div> |
| 66 <div class="fleft w1 h1"></div> |
| 67 <div class="fleft w2 h2"></div> |
| 68 <div class="fleft w1 h1"></div> |
| 69 3 444 55555555 66666 777777777 |
| 70 </div> |
| 71 |
| 72 <pre class="ahem">############ |
| 73 #AA1 # |
| 74 #AA # |
| 75 #B222222222# |
| 76 #BCDEEF3 # |
| 77 # C EE444 # |
| 78 # C55555555# |
| 79 # C66666 # |
| 80 # C # |
| 81 #777777777 # |
| 82 # # |
| 83 ############ <span>Control</span> |
| 84 </pre> |
| 85 |
| 86 </body> |
| 87 </html> |
| OLD | NEW |