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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-shapes-1/spec-examples/shape-outside-018.html

Issue 2018883002: Fix testharness paths in imported/csswg-test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>CSS Test: shape-margin offset from a polygonal shape-outside</title> 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"/> 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"/> 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"/> 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"/> 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-prop erty"/>
9 <meta name="flags" content="ahem dom"/> 9 <meta name="flags" content="ahem dom"/>
10 <meta name="assert" content="This test verifies that that content flows arou nd the shape-margin 10 <meta name="assert" content="This test verifies that that content flows arou nd the shape-margin
(...skipping 16 matching lines...) Expand all
27 shape-outside: polygon(20px 40px, 160px 180px, 20px 180px); 27 shape-outside: polygon(20px 40px, 160px 180px, 20px 180px);
28 shape-margin: 20px; 28 shape-margin: 20px;
29 } 29 }
30 img { 30 img {
31 position: absolute; 31 position: absolute;
32 top: 0px; 32 top: 0px;
33 left: 0px; 33 left: 0px;
34 z-index: -1; 34 z-index: -1;
35 } 35 }
36 </style> 36 </style>
37 <script src="../../../../resources/testharness.js"></script> 37 <script src="/resources/testharness.js"></script>
38 <script src="../../../../resources/testharnessreport.js"></script> 38 <script src="/resources/testharnessreport.js"></script>
39 <script src="support/spec-example-utils.js"></script> 39 <script src="support/spec-example-utils.js"></script>
40 </head> 40 </head>
41 <body> 41 <body>
42 <p> 42 <p>
43 The test passes if the longest green horizontal bar is beneath the trian gle and the 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. 44 rest of them are to its right and none intersect it. There should be no red.
45 </p> 45 </p>
46 <div id="test"> 46 <div id="test">
47 <div id="shape-box"></div> 47 <div id="shape-box"></div>
48 <img src="support/rounded-triangle.svg"> 48 <img src="support/rounded-triangle.svg">
49 <span id="line-0">XXXXXXXXXX</span> 49 <span id="line-0">XXXXXXXXXX</span>
50 <span id="line-1">XXXXXXXX</span> 50 <span id="line-1">XXXXXXXX</span>
51 <span id="line-2">XXXXXX</span> 51 <span id="line-2">XXXXXX</span>
52 <span id="line-3">XXXX</span> 52 <span id="line-3">XXXX</span>
53 <span id="line-4">XXX</span> 53 <span id="line-4">XXX</span>
54 <span id="line-5">XXXXXXXXXXXX</span> 54 <span id="line-5">XXXXXXXXXXXX</span>
55 </div> 55 </div>
56 <div id="log"></div> 56 <div id="log"></div>
57 <script> 57 <script>
58 approxShapeTest('test', 'line-', 2, [48, 88, 128, 168, 180, 0]); 58 approxShapeTest('test', 'line-', 2, [48, 88, 128, 168, 180, 0]);
59 </script> 59 </script>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698