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

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

Powered by Google App Engine
This is Rietveld 408576698