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

Side by Side Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-polygon-012.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
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-polygon-012-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS Test: right float, polygon + margin-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/#margin-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 margin 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: 140px;
35 height: 140px;
36 margin: 10px;
37 border: 10px solid transparent;
38 padding: 10px;
39 shape-margin: 20px;
40 shape-outside: margin-box polygon(20% 20%, 90% 20%, 90% 80%, 50% 80% , 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: 70px;
48 left: 70px;
49 width: 180px;
50 height: 80px;
51 }
52 #ref-2 {
53 top: 150px;
54 left: 150px;
55 width: 100px;
56 height: 20px;
57 }
58 #ref-3 {
59 top: 170px;
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 XXX XXX XXX XXX XXXXxXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXX X XXXXXXXXXXX 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
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-polygon-012-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698