OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 div { | 5 div { |
6 margin: 5px; | 6 margin: 5px; |
7 width: 130px; | 7 width: 130px; |
8 height: 130px; | 8 height: 130px; |
9 background: url('resources/ducky.png') no-repeat 0 0 /100% 100%, green; | 9 background: url('resources/ducky.png') no-repeat 0 0 /100% 100%, green; |
10 background-blend-mode: normal, normal; | 10 background-blend-mode: normal, normal; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <!-- This file should contain a duck with multiply blending set from script. --> | 13 <!-- This file should contain a duck with multiply blending set from script. --> |
14 <script src="resources/repaint.js" type="text/javascript"></script> | 14 <body onload="repaintTest()"> |
15 <body onload="runRepaintTest()"> | |
16 <script> | 15 <script> |
17 function repaintTest() { | 16 function repaintTest() { |
18 document.getElementById('blender').style.backgroundBlendMode = "mult
iply, normal"; | 17 document.getElementById('blender').style.backgroundBlendMode = "mult
iply, normal"; |
19 } | 18 } |
20 </script> | 19 </script> |
21 <div id="blender"></div> | 20 <div id="blender"></div> |
22 </body> | 21 </body> |
OLD | NEW |