Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 div { color: green; } | |
| 4 div.red span { color: red; } | |
| 5 </style> | |
| 6 <script> | |
| 7 onload = function() { | |
| 8 var className = 'red'; | |
| 9 div1.classList.add(className); | |
| 10 div1.classList.remove(className); | |
| 11 div2.classList.add(className); | |
| 12 } | |
| 13 </script> | |
| 14 <body> | |
| 15 <p>This test ensures we don't improperly share styles for elements that match di fferent descendant selectors.</p> | |
| 16 <div id="div1"><b><span>This line should be green.</span></b></div> | |
| 17 <div id="div2"><b><span>This line should be red.</span></b></div> | |
| OLD | NEW |