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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/spec-examples/shape-outside-012.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-image-threshold - 0.9</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 <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"/>
11 <meta name="flags" content="ahem dom"/>
12 <meta name="assert" content="This test verifies content flows around a shape that is
13 defined in the image's alpha channel and adjust ed by the
14 image-threshold" />
15 <!-- This test is derived from Example 7 in this version of the spec:
16 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ -->
17 <style type="text/css">
18 .container {
19 width: 400px;
20 font-family: Ahem;
21 font-size: 20px;
22 line-height: 2em;
23 }
24 #test {
25 color: green;
26 }
27 #test-image {
28 float: left;
29 shape-outside: url("support/circle-shadow.png");
30 shape-image-threshold: 0.9;
31 }
32 </style>
33 <script src="../../../../resources/testharness.js"></script>
34 <script src="../../../../resources/testharnessreport.js"></script>
35 <script src="support/spec-example-utils.js"></script>
36 </head>
37 <body>
38 <p>
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
41 circle. There should be no red.
42 </p>
43 <div id="test" class="container">
44 <img id="test-image" src="support/circle-shadow.png"/>
45 <span id="line-0">XXXXXX</span>
46 <span id="line-1">XXXXXX</span>
47 <span id="line-2">XXXXXX</span>
48 <span id="line-3">XXXXXX</span>
49 <span id="line-4">XXXXXX</span>
50 <span id="line-5">XXXXXXXXXXXXXXX</span>
51 </div>
52 <div id="log"></div>
53 <script>
54 approxShapeTest('test', 'line-', 2, [181, 199, 201, 199, 181, 0]);
55 </script>
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698