Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / remove-class-name.html
blobf94e166b49adc3b794b3232f011214e9ba983427
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 .b .a { background-color: red; }
5 </style>
6 <div class="b"><div class="a">You should see no red.</div></div>
7 <script>
8 description("Removing a class affected by a selector.");
10 document.body.offsetLeft; // force style recalc
11 document.getElementsByTagName("div")[1].className = "";
12 shouldBe("getComputedStyle(document.getElementsByTagName('div')[1], null).backgroundColor", "'rgba(0, 0, 0, 0)'");
13 </script>