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

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

Powered by Google App Engine
This is Rietveld 408576698