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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/circle/shape-outside-circle-031.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 radius in % units</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="match" href="reference/shape-outside-circle-030-ref.html">
9 <meta name="flags" content="ahem dom" />
10 <meta name="assert" content="The test verifies that text wraps around a
11 left float with a shape-outside defined as
12 an circle with the radius in percentage uni ts.">
13 </head>
14 <style>
15 body {
16 margin: 0;
17 }
18 .container {
19 font: 15px Ahem, sans-serif;
20 line-height: 20px;
21 width: 400px;
22 height: 200px;
23 color: green;
24 }
25 .circle {
26 width: 160px;
27 height: 160px;
28 shape-outside: circle(50% at 50% 50%);
29 }
30 </style>
31 <body>
32 <p>The test passes if all of the squares are green. There should be no red.< /p>
33 <div class="container">
34 X<br/>
35 <div style="float: left" class="circle"></div>
36 <span id="test0">X</span><br/>
37 <span id="test1">X</span><br/>
38 <span id="test2">X</span><br/>
39 <span id="test3">X</span><br/>
40 <span id="test4">X</span><br/>
41 <span id="test5">X</span><br/>
42 <span id="test6">X</span><br/>
43 <span id="test7">X</span><br/>
44 <span id="test8">X
45 </div>
46 <script src="../support/rounded-rectangle.js"></script>
47 <script src="../support/subpixel-utils.js"></script>
48 <script src="../support/test-utils.js"></script>
49 <script>
50 verifyTextPoints({
51 roundedRect: {x: 0, y: 20, width: 160, height: 160, rx: 80, ry: 80},
52 containerWidth: 200,
53 containerHeight: 200,
54 lineHeight: 20
55 }, 9);
56 </script>
57 </body>
58 </html>
59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698