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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/shape-image/gradients/shape-outside-linear-gradient-002.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: Right float with linear 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-linear-gradient-002-ref.html "/>
9 <meta name="flags" content="ahem"/>
10 <meta name="assert" content="This test verifies that shape-outside respects a
11 simple linear gradient on a right float."/>
12 <style type="text/css">
13 .container {
14 width: 200px;
15 height: 200px;
16 background-color: red;
17 font-family: Ahem;
18 font-size: 50px;
19 line-height: 1;
20 }
21 #test {
22 color: green;
23 }
24 #gradient {
25 float: right;
26 width: 200px;
27 height: 200px;
28 background: linear-gradient(to left, green 50%, transparent 50%);
29 shape-outside: linear-gradient(to left, rgba(51, 51, 51, 1) 0%, rgba (51, 51, 51, 0.75) 50%, rgba(51, 51, 51, 0.25) 50%, transparent 100%);
30 shape-image-threshold: 0.5;
31 }
32 </style>
33 </head>
34 <body>
35 <p>
36 The test passes if you see a green square. There should be no red.
37 </p>
38 <div id="test" class="container">
39 <div id="gradient"></div>
40 xx xx xx xx
41 </div>
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698