OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: square shape-outside on floats</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://www.w3.org/TR/css-shapes-1/#shape-outside-property
"> | |
6 <link rel="match" href="shape-outside-floats-square-000-ref.html"> | |
7 <meta name="flags" content="ahem"> | |
8 <style> | |
9 .container { | |
10 width: 75px; | |
11 height: 75px; | |
12 font: 25px/1 Ahem; | |
13 line-height: 25px; | |
14 border: 10px solid black; | |
15 display: inline-block; | |
16 } | |
17 | |
18 .left-text { | |
19 text-align: left; | |
20 } | |
21 | |
22 .right-text { | |
23 text-align: right; | |
24 } | |
25 | |
26 .left { | |
27 float: left; | |
28 width: 75px; | |
29 height: 75px; | |
30 shape-outside: rectangle(0px, 0px, 50px, 50px); | |
31 } | |
32 | |
33 .right { | |
34 float: right; | |
35 width: 75px; | |
36 height: 75px; | |
37 shape-outside: rectangle(25px, 0px, 50px, 50px); | |
38 } | |
39 </style> | |
40 </head> | |
41 <body> | |
42 <p>Test passes if you see two black square boxes with a smaller white square
in one corner.</p> | |
43 <div class="container left-text"> | |
44 <div class="left"></div> | |
45 X<br/> | |
46 X<br/> | |
47 XXX<br/> | |
48 </div> | |
49 | |
50 <div class="container right-text"> | |
51 <div class="right"></div> | |
52 X<br/> | |
53 X<br/> | |
54 XXX<br/> | |
55 </div> | |
56 </body> | |
OLD | NEW |