Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="resources/text-based-repaint.js"></script> | |
| 3 | |
| 4 <style> | |
| 5 #input1 { | |
|
Timothy Loh
2015/08/28 04:48:44
input is a weird name..
I would've written:
div
nainar1
2015/08/28 05:02:40
Done
| |
| 6 width: 100px; | |
| 7 height: 100px; | |
| 8 background: currentColor; | |
| 9 color: blue; | |
| 10 } | |
| 11 | |
| 12 #input2 { | |
| 13 width: 100px; | |
| 14 height: 100px; | |
| 15 background: currentColor; | |
| 16 color: transparent; | |
| 17 } | |
| 18 | |
| 19 </style> | |
| 20 | |
| 21 <div id="input1"></div> | |
| 22 <div id="input2"></div> | |
| 23 | |
| 24 <script> | |
| 25 function repaintTest() | |
| 26 { | |
| 27 input1.style.color = 'transparent'; | |
| 28 input2.style.color = 'blue'; | |
| 29 } | |
| 30 | |
| 31 window.onload = runRepaintTest; | |
| 32 | |
| 33 </script> | |
| 34 | |
| OLD | NEW |