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

Side by Side Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-polygon-013.html

Issue 510513002: [CSS Shapes] Import and fix polygon shapes reftests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove webkit prefixes Created 6 years, 3 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 <title>CSS Test: right float, polygon + border-box + shape-margin</title >
5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-polygo n">
7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside- property">
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p roperty">
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#border-box">
10 <link rel="match" href="reference/shape-outside-polygon-010-ref.html">
11 <meta name="flags" content="ahem" />
12 <meta name="assert" content="The test verifies that text wraps around a
13 right float with a shape-outside defined as
14 an polygon from the border box with a shape margin.">
15 </head>
16 <style>
17 body {
18 margin: 0;
19 }
20 #container {
21 position: absolute;
22 top: 50px;
23 left: 10px;
24 font-size: 20px;
25 font-family: Ahem;
26 line-height: 20px;
27 width: 240px;
28 height: 240px;
29 background-color: red;
30 color: green;
31 }
32 #test-shape {
33 float: right;
34 width: 160px;
35 height: 160px;
36 margin: 10px;
37 border: 10px solid transparent;
38 padding: 10px;
39 shape-margin: 10px;
40 shape-outside: border-box polygon(20% 20%, 100% 20%, 100% 90%, 50% 9 0%, 50% 70%, 70% 70%, 70% 40%, 20% 40%);
41 }
42 .ref-shape {
43 position: absolute;
44 background-color: green;
45 }
46 #ref-1 {
47 top: 90px;
48 left: 70px;
49 width: 180px;
50 height: 60px;
51 }
52 #ref-2 {
53 top: 150px;
54 left: 170px;
55 width: 80px;
56 height: 40px;
57 }
58 #ref-3 {
59 top: 190px;
60 left: 130px;
61 width: 120px;
62 height: 60px;
63 }
64 </style>
65 <body>
66 <p>The test passes if there is green square and no red.</p>
67 <div id="container">
68 <div id="test-shape"></div>
69 XXXXXXXXXXXX XXXXXXXXXXXX XXX XXX XXX XXXXXXXX XXXXXXXX XXXXXX XXXXXX XX XXXX XXXXXXXXXXXX XXXXXXXXXXXX
70 </div>
71 <div id="ref-1" class="ref-shape"></div>
72 <div id="ref-2" class="ref-shape"></div>
73 <div id="ref-3" class="ref-shape"></div>
74 </body>
75 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698