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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-013.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 and position in px</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="match" href="reference/shape-outside-ellipse-013-ref.html">
9 <meta name="flags" content="ahem" />
10 <meta name="assert" content="The test verifies that text wraps around a
11 left float with a shape-outside defined as
12 a ellipse with radii and position in px uni ts.">
13 </head>
14 <style>
15 body {
16 margin: 0;
17 }
18 #container {
19 position: relative;
20 }
21 #test-container {
22 font: 40px/1 Ahem, sans-serif;
23 width: 300px;
24 height: 200px;
25 color: green;
26 }
27 #test-shape {
28 float: left;
29 width: 140px;
30 height: 140px;
31 margin: 10px;
32 padding: 10px;
33 border: 10px solid transparent;
34 shape-outside: ellipse(80px 40px at 90px 90px);
35 }
36 #line {
37 position: absolute;
38 top: 0px;
39 left: 168px;
40 width: 2px;
41 height: 200px;
42 border-left: 2px solid blue;
43 }
44 #failure {
45 position: absolute;
46 top: 80px;
47 left: 170px;
48 width: 40px;
49 height: 40px;
50 background-color: red;
51 z-index: -1;
52 }
53 </style>
54 <body>
55 <p>The test passes if there is a green square to the right of the blue line. There should be no red.</p>
56 <div id="container">
57 <div id="test-container">
58 <div id="test-shape"></div>
59 <br/>
60 <br/>
61 X
62 </div>
63 <div id="line"></div>
64 <div id="failure"></div>
65 </div>
66 </body>
67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698