Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-floats-inset.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5     .test {
6         font: 20px/1 Ahem, sans-serif;
7         border: 1px solid black;
8         line-height: 20px;
9     }
10     .container {
11         width: 60px;
12         height: 60px;
13         display: inline-block;
14     }
15     .float {
16         width: 40px;
17         height: 40px;
18     }
19     .top {
20         -webkit-shape-outside: inset(20px 0 0 0);
21     }
22     .right {
23         -webkit-shape-outside: inset(0 20px 0 0);
24     }
25     .bottom {
26         -webkit-shape-outside: inset(0 0 20px 0);
27     }
28     .left {
29         -webkit-shape-outside: inset(0 0 0 20px);
30     }
31 </style>
32 </head>
33 <body>
34     <div class="test container">
35       <div style="float: left" class="float top"></div>
36       XXX
37       X
38       XXX
39     </div>
40     <div class="test container">
41       <div style="float: right" class="float top"></div>
42       XXX
43       X
44       XXX
45     </div>
46     <div class="test container">
47       <div style="float: left" class="float right"></div>
48       XX
49       XX
50       XXX
51     </div>
52     <div class="test container">
53       <div style="float: left" class="float bottom"></div>
54       X
55       XXX
56       XXX
57     </div>
58     <div class="test container">
59       <div style="float: right" class="float bottom"></div>
60       X
61       XXX
62       XXX
63     </div>
64     <div class="test container">
65       <div style="float: right" class="float left"></div>
66       XX
67       XX
68       XXX
69     </div>
70
71     <p>Requires Ahem font. Each container contains a different inset shape-outside.</p>
72     <p>Issue <a href="https://code.google.com/p/chromium/issues/detail?id=338523">338523</a>: [CSS Shapes] Support inset for shape-outside</p>
73 </body>
74 </html>