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

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

Powered by Google App Engine
This is Rietveld 408576698