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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-020.html

Issue 816533002: Import CSSWG Shapes tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more test expectations update Created 6 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS Test: left float, ellipse radii in % units + margin-box + sha pe-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-ellips e">
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/#margin-box">
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p roperty">
10 <link rel="match" href="reference/shape-outside-ellipse-013-ref.html">
11 <meta name="flags" content="ahem" />
12 <meta name="assert" content="The test verifies that text wraps around a
13 left float with a shape-outside defined as
14 a ellipse from the margin box with the radi i specified
15 in percentage units and with a shape-margin .">
16 </head>
17 <style>
18 body {
19 margin: 0;
20 }
21 #container {
22 position: relative;
23 }
24 #test-container {
25 font: 40px/1 Ahem, sans-serif;
26 width: 300px;
27 height: 200px;
28 color: green;
29 }
30 #test-shape {
31 float: left;
32 width: 100px;
33 height: 100px;
34 margin: 20px;
35 padding: 10px;
36 border: 10px solid transparent;
37 shape-margin: 18px;
38 shape-outside: margin-box ellipse(40% 30% at 80px);
39 }
40 #line {
41 position: absolute;
42 top: 0px;
43 left: 168px;
44 width: 2px;
45 height: 200px;
46 border-left: 2px solid blue;
47 }
48 #failure {
49 position: absolute;
50 top: 80px;
51 left: 170px;
52 width: 40px;
53 height: 40px;
54 background-color: red;
55 z-index: -1;
56 }
57 </style>
58 <body>
59 <p>The test passes if there is a green square to the right of the blue line. There should be no red.</p>
60 <div id="container">
61 <div id="test-container">
62 <div id="test-shape"></div>
63 <br/>
64 <br/>
65 X
66 </div>
67 <div id="line"></div>
68 <div id="failure"></div>
69 </div>
70 </body>
71 </html>
72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698