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/shape-outside/shape-image/gradients/shape-outside-radial-gradient-003.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: Left float with radial gradient shape, shape margin, and sh ape-image-threshold</title>
5 <link rel="author" title="Bear Travis" href="betravis@adobe.com"/>
6 <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/#shape-outside-prop erty"/>
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-prope rty"/>
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-thresh old-property"/>
10 <meta name="flags" content="ahem dom"/>
11 <meta name="assert" content="This test verifies that shape-outside respects a
12 simple radial gradient when a shape margin
13 and shape-image threshold are applied."/>
14 <style type="text/css">
15 body { margin: 0; }
16 .container {
17 width: 200px;
18 height: 200px;
19 font-family: Ahem;
20 font-size: 10px;
21 line-height: 1;
22 }
23 #test {
24 color: green;
25 }
26 #gradient {
27 float: left;
28 width: 100px;
29 height: 100px;
30 shape-outside: radial-gradient(circle, green 10px, rgba(0, 255, 0, 0 .75) 25px, rgba(0, 255, 0, 0.25) 25px, transparent 50px);
31 shape-margin: 25px;
32 shape-image-threshold: 0.5;
33 }
34 </style>
35 </head>
36 <body>
37 <p>
38 The test passes if you see green boxes following the contour of a circle . There should be no red.
39 </p>
40 <div id="test" class="container">
41 x</br>
42 <div id="gradient"></div>
43 <span id='test0'>x</span><br/>
44 <span id='test1'>x</span><br/>
45 <span id='test2'>x</span><br/>
46 <span id='test3'>x</span><br/>
47 <span id='test4'>x</span><br/>
48 <span id='test5'>x</span><br/>
49 <span id='test6'>x</span><br/>
50 <span id='test7'>x</span><br/>
51 <span id='test8'>x</span><br/>
52 <span id='test9'>x</span><br/>
53 x<br/>
54 </div>
55 <div id="log"></div>
56 <script src="../../../../../../resources/testharness.js"></script>
57 <script src="../../../../../../resources/testharnessreport.js"></script>
58 <script src="../../supported-shapes/support/rounded-rectangle.js"></script>
59 <script src="../../supported-shapes/support/subpixel-utils.js"></script>
60 <script src="../../supported-shapes/support/test-utils.js"></script>
61 <script>
62 verifyTextPoints({
63 roundedRect: {x: 0, y: 10, width: 100, height: 100, rx: 50, ry: 50},
64 containerWidth: 200,
65 containerHeight: 200,
66 lineHeight: 10
67 }, 10, 1.5);
68 </script>
69 </body>
70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698