Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-stacked-expected.html

Issue 13909006: Merge patch for stacked floats with shape-outside from WebKit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to reflect movment of WebCore -> core Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .container {
6 width: 500px;
7 font: 40px/1 Ahem, sans-serif;
8 }
9 .left {
10 position: relative;
11 float: left;
12 clear: left;
13 height: 40px;
14 }
15 .triangle-left:before {
Julien - ping for review 2013/04/17 21:20:22 As I said, I would better have a more focused test
16 display: block;
17 position: absolute;
18 content: ' ';
19 z-index: -1;
20 top: 0px;
21 left: 0px;
22 width: 0; height: 0;
23 background-color: transparent;
24 border-top: 100px solid transparent;
25 border-left: 100px solid rgba(0, 0, 255, 0.5);
26 }
27 .triangle-left2:before {
28 display: block;
29 position: absolute;
30 content: ' ';
31 z-index: -1;
32 top: 0px;
33 left: 100px;
34 width: 0; height: 0;
35 background-color: transparent;
36 border-top: 100px solid transparent;
37 border-left: 100px solid rgba(0, 0, 255, 0.5);
38 }
39 .right {
40 position: relative;
41 float: right;
42 clear: right;
43 height: 40px;
44 }
45 .triangle-right:before {
46 display: block;
47 position: absolute;
48 content: ' ';
49 z-index: -1;
50 top: 0px;
51 right: 0px;
52 width: 0; height: 0;
53 background-color: transparent;
54 border-top: 100px solid transparent;
55 border-right: 100px solid rgba(0, 0, 255, 0.5);
56 }
57 .triangle-right2:before {
58 display: block;
59 position: absolute;
60 content: ' ';
61 z-index: -1;
62 top: 0px;
63 right: 100px;
64 width: 0; height: 0;
65 background-color: transparent;
66 border-top: 100px solid transparent;
67 border-right: 100px solid rgba(0, 0, 255, 0.5);
68 }
69 </style>
70 </head>
71 <body>
72 <h1>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=110372">110372</a> - [CSS Exclusions] Properly position multiple stacked floats with non rectangular shape outside</h1>
73 <h2>There should be two trianges on the left, and one on the right. None of
74 the triangles shoud overlap, and the black boxes should wrap around the tria ngles on the left.</h2>
75 <div class="container">
76 <div style="width:40px;" class="left triangle-left"></div>
77 X X X X
78 <div style="height: 100px; width: 100px;" class="right triangle-left"></div>
79 <div style="width:80px;" class="left"></div>
80 X X X X
81 <div style="width:140px;" class="left triangle-left2"></div>
82 <div style="width:180px;" class="left"></div>
83 <div style="width:200px;" class="left"></div>
84 X X X X
85 X X X X
86 X X X X
87 X X X X X X
88 </div>
89 <h2>There should be two trianges on the right, and one on the left. None of
90 the triangles shoud overlap, and the black boxes should wrap around the tria ngles on the right.</h2>
91 <div style="text-align: right" class="container">
92 <div style="width:40px;" class="right triangle-right"></div>
93 X X X X
94 <div style="height: 100px; width: 100px;" class="left triangle-right"></div>
95 <div style="width:80px;" class="right"></div>
96 X X X X
97 <div style="width:140px;" class="right triangle-right2"></div>
98 <div style="width:180px;" class="right"></div>
99 <div style="width:200px;" class="right"></div>
100 X X X X
101 X X X X
102 X X X X
103 X X X X X X
104 </div>
105 </body>
106 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698