| OLD | NEW |
| 1 <html lang=en> | 1 <html lang=en> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
| 4 <style> | 4 <style> |
| 5 .testclass { background-color: red; } | 5 .testclass { background-color: red; } |
| 6 </style> | 6 </style> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <div class=testclass>first div</div> | 9 <div class=testclass>first div</div> |
| 10 <style> | 10 <style> |
| 11 .testclass { background-color: green; } | 11 .testclass { background-color: green; } |
| 12 </style> | 12 </style> |
| 13 <div class=testclass>second div</div> | 13 <div class=testclass>second div</div> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 description("Test that inline stylesheet does not confuse style sharing."); | 16 description("Test that inline stylesheet does not confuse style sharing."); |
| 17 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[1
]).backgroundColor','"rgb(0, 128, 0)"'); | 17 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[1
]).backgroundColor','"rgb(0, 128, 0)"'); |
| 18 </script> | 18 </script> |
| 19 <script src="../js/resources/js-test-post.js"></script> | |
| 20 </body> | 19 </body> |
| OLD | NEW |