Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Synchronized screenshot test with divs</title> | |
| 5 <style> | |
| 6 html, body { margin: 0; } | |
| 7 </style> | |
| 8 </head> | |
| 9 <body> | |
| 10 <div id="backgrounddiv" style="position: absolute; left; 0px; top: 0px; width: 256px; height: 256px; will-change: transform; background-color: rgb(0, 255, 0); ">.</div> | |
| 11 <div id="testdiv" style="position: absolute; left; 0px; top: 0px; width: 192px ; height: 192px; will-change: transform; background-color: rgb(255, 0, 0);">.</d iv> | |
|
vmiura
2016/02/06 02:44:37
Please inset inner div so it does not also start a
Ken Russell (switch to Gerrit)
2016/02/06 02:45:15
Done.
| |
| 12 | |
| 13 <script> | |
| 14 function draw(r, g, b) { | |
| 15 document.getElementById('testdiv').style.background = | |
| 16 'rgb(' + r + ', ' + g + ', ' + b + ')'; | |
| 17 document.getElementById('backgrounddiv').style.background = | |
| 18 'rgb(' + r + ', ' + g + ', ' + b + ')'; | |
| 19 } | |
| 20 </script> | |
| 21 </body> | |
| 22 </html> | |
| OLD | NEW |