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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/spec-examples/shape-outside-018.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-margin offset from a polygonal shape-outside</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-box-va lues"/>
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 that content flows arou nd the shape-margin
11 defined on a polygonal shape-outside."/>
12 <!-- This test is derived from Example 10 in this version of the spec:
13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ -->
14 <style type="text/css">
15 #test {
16 position: relative;
17 color: green;
18 width: 300px;
19 font-family: Ahem;
20 font-size: 20px;
21 line-height: 2em;
22 }
23 #shape-box {
24 float: left;
25 width: 200px;
26 height: 200px;
27 shape-outside: polygon(20px 40px, 160px 180px, 20px 180px);
28 shape-margin: 20px;
29 }
30 img {
31 position: absolute;
32 top: 0px;
33 left: 0px;
34 z-index: -1;
35 }
36 </style>
37 <script src="../../../../resources/testharness.js"></script>
38 <script src="../../../../resources/testharnessreport.js"></script>
39 <script src="support/spec-example-utils.js"></script>
40 </head>
41 <body>
42 <p>
43 The test passes if the longest green horizontal bar is beneath the trian gle and the
44 rest of them are to its right and none intersect it. There should be no red.
45 </p>
46 <div id="test">
47 <div id="shape-box"></div>
48 <img src="support/rounded-triangle.svg">
49 <span id="line-0">XXXXXXXXXX</span>
50 <span id="line-1">XXXXXXXX</span>
51 <span id="line-2">XXXXXX</span>
52 <span id="line-3">XXXX</span>
53 <span id="line-4">XXX</span>
54 <span id="line-5">XXXXXXXXXXXX</span>
55 </div>
56 <div id="log"></div>
57 <script>
58 approxShapeTest('test', 'line-', 2, [48, 88, 128, 168, 180, 0]);
59 </script>
60 </body>
61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698