Index: LayoutTests/fast/css/remove-class-name.html |
diff --git a/LayoutTests/fast/css/remove-class-name.html b/LayoutTests/fast/css/remove-class-name.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f94e166b49adc3b794b3232f011214e9ba983427 |
--- /dev/null |
+++ b/LayoutTests/fast/css/remove-class-name.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/js-test.js"></script> |
+<style> |
+.b .a { background-color: red; } |
+</style> |
+<div class="b"><div class="a">You should see no red.</div></div> |
+<script> |
+description("Removing a class affected by a selector."); |
+ |
+document.body.offsetLeft; // force style recalc |
+document.getElementsByTagName("div")[1].className = ""; |
+shouldBe("getComputedStyle(document.getElementsByTagName('div')[1], null).backgroundColor", "'rgba(0, 0, 0, 0)'"); |
+</script> |