OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: shape-outside on floats with padding, vertical writing mode</ti
tle> | |
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://dev.w3.org/csswg/css-shapes-1/#relation-to-box-mod
el-and-float-behavior"> | |
6 <meta name="assert" content="This tests if padding on the opposite logical side
as the float direction (eg: right padding on left float) is properly ignored in
the case of a zero extent shape."> | |
7 <link rel="match" href="shape-outside-floats-padding-006-ref.html"> | |
8 <meta name="flags" content="ahem"> | |
9 <head> | |
10 <style> | |
11 .container { | |
12 font: 20px/1 Ahem, sans-serif; | |
13 width: 20px; | |
14 height: 100px; | |
15 border: 1px solid black; | |
16 color: green; | |
17 display: inline-block; | |
18 -webkit-writing-mode: vertical-lr; | |
19 background-color: red; | |
20 } | |
21 | |
22 #float-left { | |
23 float: left; | |
24 width: 20px; | |
25 height: 100px; | |
26 shape-outside: rectangle(0, 0, 100%, 0); | |
27 padding-bottom: 20px; | |
28 } | |
29 | |
30 #float-right { | |
31 float: right; | |
32 width: 20px; | |
33 height: 100px; | |
34 shape-outside: rectangle(0, 0, 100%, 0); | |
35 padding-top: 20px; | |
36 } | |
37 </style> | |
38 | |
39 <body> | |
40 <p>This should display two vertical green bars. You should not see any red.<
/p> | |
41 <div class="container" style="text-align: right"> | |
42 <div id="float-right"> | |
43 </div> | |
44 XXXXX | |
45 </div> | |
46 <div class="container"> | |
47 <div id="float-left"> | |
48 </div> | |
49 XXXXX | |
50 </div> | |
51 </body> | |
OLD | NEW |