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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-shapes-1/spec-examples/shape-outside-012.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, 7 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 from image - shape-image-threshold - 0.9</title> 4 <title>CSS Test: Shape from image - shape-image-threshold - 0.9</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-image" /> 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"/> 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-prop erty"/>
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-thresh old-property"/> 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-thresh old-property"/>
10 <link rel="match" href="reference/shape-outside-012-ref.html"/> 10 <link rel="match" href="reference/shape-outside-012-ref.html"/>
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 #test { 24 #test {
25 color: green; 25 color: green;
26 } 26 }
27 #test-image { 27 #test-image {
28 float: left; 28 float: left;
29 shape-outside: url("support/circle-shadow.png"); 29 shape-outside: url("support/circle-shadow.png");
30 shape-image-threshold: 0.9; 30 shape-image-threshold: 0.9;
31 } 31 }
32 </style> 32 </style>
33 <script src="../../../../resources/testharness.js"></script> 33 <script src="/resources/testharness.js"></script>
34 <script src="../../../../resources/testharnessreport.js"></script> 34 <script src="/resources/testharnessreport.js"></script>
35 <script src="support/spec-example-utils.js"></script> 35 <script src="support/spec-example-utils.js"></script>
36 </head> 36 </head>
37 <body> 37 <body>
38 <p> 38 <p>
39 The test passes if the short green horizontal bars are the right of the circle, all 39 The test passes if the short green horizontal bars are the right of the circle, all
40 intersect the shadow, none intersect the circle and the long green bar i s beneath the 40 intersect the shadow, none intersect the circle and the long green bar i s beneath the
41 circle. There should be no red. 41 circle. There should be no red.
42 </p> 42 </p>
43 <div id="test" class="container"> 43 <div id="test" class="container">
44 <img id="test-image" src="support/circle-shadow.png"/> 44 <img id="test-image" src="support/circle-shadow.png"/>
45 <span id="line-0">XXXXXX</span> 45 <span id="line-0">XXXXXX</span>
46 <span id="line-1">XXXXXX</span> 46 <span id="line-1">XXXXXX</span>
47 <span id="line-2">XXXXXX</span> 47 <span id="line-2">XXXXXX</span>
48 <span id="line-3">XXXXXX</span> 48 <span id="line-3">XXXXXX</span>
49 <span id="line-4">XXXXXX</span> 49 <span id="line-4">XXXXXX</span>
50 <span id="line-5">XXXXXXXXXXXXXXX</span> 50 <span id="line-5">XXXXXXXXXXXXXXX</span>
51 </div> 51 </div>
52 <div id="log"></div> 52 <div id="log"></div>
53 <script> 53 <script>
54 approxShapeTest('test', 'line-', 2, [181, 199, 201, 199, 181, 0]); 54 approxShapeTest('test', 'line-', 2, [181, 199, 201, 199, 181, 0]);
55 </script> 55 </script>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698