Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../resources/common.js"></script> | |
| 5 <script> | |
| 6 function startTest() { | |
| 7 var label = document.getElementById("label"); | |
| 8 var checkbox = document.getElementById("checkbox"); | |
| 9 | |
| 10 // Move mouse to checkbox. | |
| 11 hoverOverElement(checkbox); | |
| 12 // Move mouse to text after checkbox. | |
| 13 hoverOverElement(label); | |
| 14 } | |
| 15 </script> | |
| 16 <style> | |
| 17 input[type=checkbox]:hover:after { | |
|
tkent
2015/05/14 05:24:00
Don't use :after for an input element.
| |
| 18 content: 'Hovering'; | |
| 19 top: 2em; | |
| 20 position: relative; | |
| 21 } | |
| 22 </style> | |
| 23 </head> | |
| 24 <body onload="startTest()"> | |
| 25 <label id="label"><input id="checkbox" type="checkbox" /> Test</label> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |