OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 div { |
| 6 margin: 20px; |
| 7 width: 130px; |
| 8 height: 130px; |
| 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="background-color: blue;"></div> |
| 16 </div> |
| 17 <div style="background: green; position: relative; z-index: -1;"> |
| 18 <div id="second" style="background-color: blue;"></div> |
| 19 </div> |
| 20 <div style="background: green; position: relative; z-index: -1;"> |
| 21 <div id="third" style="background-color: blue;"></div> |
| 22 </div> |
| 23 <script> |
| 24 function repaintTest() { |
| 25 document.getElementById('first').style.mixBlendMode = "multiply"; |
| 26 document.getElementById('second').style.mixBlendMode = "normal"; |
| 27 document.getElementById('third').style.mixBlendMode = "multiply"; |
| 28 } |
| 29 </script> |
| 30 </body> |
OLD | NEW |