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

Side by Side Diff: LayoutTests/fast/repaint/mix-blend-mode-separate-stacking-context.html

Issue 23503046: [CSS Blending] Implement mix-blend-mode in software. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 div {
6 margin: 20px;
7 width: 60px;
8 height: 60px;
9 float: left;
10 }
11 </style>
12 <script src="resources/repaint.js" type="text/javascript"></script>
13 <body onload="runRepaintTest()">
14 <div style="background: green; position: relative; z-index: -1;">
15 <div id="first" style="mix-blend-mode: normal; background-color: blue;"> </div>
16 </div>
17 <div style="background: green; position: relative; z-index: -1;">
18 <div id="second" style="mix-blend-mode: hue; background-color: blue;"></ div>
19 </div>
20 <div style="background: green; position: relative; z-index: -1;">
21 <div id="third" style="mix-blend-mode: hue; background-color: blue;"></d iv>
22 </div>
23 <div id="fourth" style="background: green;">
24 <div style="mix-blend-mode: hue; background-color: blue;"></div>
25 </div>
26
27 <script>
28 function repaintTest() {
29 document.getElementById('first').style.mixBlendMode = "multiply";
30 document.getElementById('second').style.mixBlendMode = "normal";
31 document.getElementById('third').style.mixBlendMode = "multiply";
32 document.getElementById('fourth').style.position = "relative";
33 document.getElementById('fourth').style.zIndex = -1;
34 }
35 </script>
36 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698