Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / style-sharing-inline-stylesheet.html
blobfe56c9f05ebbe6467fd3f65750ce217fbc77b8f5
1 <html lang=en>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <style>
5 .testclass { background-color: red; }
6 </style>
7 </head>
8 <body>
9 <div class=testclass>first div</div>
10 <style>
11 .testclass { background-color: green; }
12 </style>
13 <div class=testclass>second div</div>
15 <script>
16 description("Test that inline stylesheet does not confuse style sharing.");
17 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[1]).backgroundColor','"rgb(0, 128, 0)"');
18 </script>
19 </body>