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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/spec-examples/shape-outside-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: Shape from image - shape-margin</title>
5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/>
6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/>
7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image" />
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-prop erty"/>
9 <meta name="flags" content="ahem dom"/>
10 <meta name="assert" content="This test verifies that the content flows aroun d the
11 shape defined in the images alpha channel and a djusted by
12 the shape-margin."/>
13 <!-- This test is derived from Example 7 in this version of the spec:
14 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ -->
15 <style type="text/css">
16 #test {
17 position: relative;
18 width: 400px;
19 color: green;
20 font-family: Ahem;
21 font-size: 20px;
22 line-height: 2em;
23 }
24 #test-image {
25 float: left;
26 shape-outside: url("support/circle-no-shadow.png");
27 shape-margin: 15px;
28 }
29 #margin-circle {
30 position: absolute;
31 top: -15px;
32 left: -15px;
33 width: 230px;
34 height: 230px;
35 background-color: blue;
36 border-radius: 150px;
37 z-index: -1;
38 }
39 </style>
40 <script src="../../../../resources/testharness.js"></script>
41 <script src="../../../../resources/testharnessreport.js"></script>
42 <script src="support/spec-example-utils.js"></script>
43 </head>
44 <body>
45 <p>
46 The test passes if the short green horizontal bars are the right of the circle,
47 the long green bar is beneath the circle, and no bars intersect the circ le. There
48 should be no red.
49 </p>
50 <div id="test">
51 <img id="test-image" src="support/circle-no-shadow.png"/>
52 <div id="margin-circle"></div>
53 <span id="line-0">XXXXXX</span>
54 <span id="line-1">XXXXXX</span>
55 <span id="line-2">XXXXXX</span>
56 <span id="line-3">XXXXXX</span>
57 <span id="line-4">XXXXXX</span>
58 <span id="line-5">XXXXXX</span>
59 <span id="line-6">XXXXXXXXXXXXX</span>
60 </div>
61 <div id="log"></div>
62 <script>
63 approxShapeTest('test', 'line-', 2, [200, 214, 216, 214, 200, 158, 0]);
64 </script>
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698