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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/shape-image/gradients/shape-outside-radial-gradient-001.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</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="match" href="reference/shape-outside-radial-gradient-001-ref.html "/>
9 <meta name="flags" content="ahem dom"/>
10 <meta name="assert" content="This test verifies that shape-outside respects a
11 simple radial gradient."/>
12 <style type="text/css">
13 body { margin: 0; }
14 .container {
15 width: 200px;
16 height: 200px;
17 font-family: Ahem;
18 font-size: 10px;
19 line-height: 1;
20 }
21 #test {
22 color: green;
23 }
24 #gradient {
25 float: left;
26 width: 100px;
27 height: 100px;
28 shape-outside: radial-gradient(circle, green 0px, transparent 50px);
29 }
30 </style>
31 </head>
32 <body>
33 <p>
34 The test passes if you see green boxes following the contour of a circle . There should be no red.
35 </p>
36 <div id="test" class="container">
37 x</br>
38 <div id="gradient"></div>
39 <span id='test0'>x</span><br/>
40 <span id='test1'>x</span><br/>
41 <span id='test2'>x</span><br/>
42 <span id='test3'>x</span><br/>
43 <span id='test4'>x</span><br/>
44 <span id='test5'>x</span><br/>
45 <span id='test6'>x</span><br/>
46 <span id='test7'>x</span><br/>
47 <span id='test8'>x</span><br/>
48 <span id='test9'>x</span><br/>
49 x<br/>
50 </div>
51 <div id="log"></div>
52 <script src="../../../../../../resources/testharness.js"></script>
53 <script src="../../../../../../resources/testharnessreport.js"></script>
54 <script src="../../supported-shapes/support/rounded-rectangle.js"></script>
55 <script src="../../supported-shapes/support/subpixel-utils.js"></script>
56 <script src="../../supported-shapes/support/test-utils.js"></script>
57 <script>
58 verifyTextPoints({
59 roundedRect: {x: 0, y: 10, width: 100, height: 100, rx: 50, ry: 50},
60 containerWidth: 200,
61 containerHeight: 200,
62 lineHeight: 10
63 }, 10, 1.5);
64 </script>
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698