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

Side by Side Diff: LayoutTests/css3/masking/mask-luminance-gradient.html

Issue 23947005: Implement CSS luminance masking using skia SkLumaMaskXfermode class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <style> 4 <style>
5 #back { 5 #back {
6 width: 1000px; 6 width: 800px;
7 height: 600px; 7 height: 400px;
8 background-color: green; 8 background-color: yellow;
9 } 9 }
10 #front { 10 #front {
11 width: 800px; 11 width: 600px;
12 height: 400px; 12 height: 200px;
13 background-color: red; 13 background-color: green;
14 border: 50px solid blue; 14 border: 50px solid blue;
15 padding: 50px; 15 padding: 50px;
16 -webkit-mask-image: url(resources/circle.png); 16 -webkit-mask-image: linear-gradient(45deg, white, black);
17 -webkit-mask-size: 106px; 17 mask-source-type: luminance;
18 -webkit-mask-repeat: round; 18 -webkit-mask-size: 200px auto;
19 -webkit-mask-origin: border-box;
20 -webkit-mask-clip: border-box;
21 } 19 }
22 </style> 20 </style>
23 </head> 21 </head>
24 22
25 <body> 23 <body>
26 <div id="back"> 24 <div id="back">
27 <div id="front" /> 25 <div id="front" />
28 </div> 26 </div>
29 </body> 27 </body>
30 </html> 28 </html>
31 29
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/css3/masking/mask-luminance-gradient-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698