Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src=resources/text-based-repaint.js></script> | |
| 3 <style> | |
| 4 body { | |
| 5 margin: 0; | |
| 6 padding: 0; | |
| 7 } | |
| 8 .foo { | |
|
Julien - ping for review
2015/06/08 15:46:11
foo :(
fs
2015/06/08 16:15:37
Restructured a bit and dropped the foo (in favor o
| |
| 9 outline: 5px solid blue; | |
| 10 } | |
| 11 .container { | |
| 12 position: absolute; | |
| 13 width: 255px; | |
| 14 text-align: right; | |
| 15 font: 10px Ahem; | |
| 16 } | |
| 17 </style> | |
| 18 <div class=container> | |
| 19 <span class=foo>Test</span> | |
| 20 </div> | |
| 21 <script> | |
| 22 function repaintTest() { | |
| 23 document.querySelector('div').style.color = 'green'; | |
|
Julien - ping for review
2015/06/08 15:46:11
document.getElementsByClassName['container'][0] (o
fs
2015/06/08 16:15:37
Changed to using an id.
| |
| 24 } | |
| 25 onload = runRepaintTest; | |
| 26 </script> | |
| OLD | NEW |