Index: LayoutTests/fast/css/invalidation/targeted-attribute-scope.html |
diff --git a/LayoutTests/fast/css/invalidation/targeted-attribute-scope.html b/LayoutTests/fast/css/invalidation/targeted-attribute-scope.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6ff5908bb9a2de221f2c654eb83f2d8475c26584 |
--- /dev/null |
+++ b/LayoutTests/fast/css/invalidation/targeted-attribute-scope.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<style> |
+.inner1 [attr] { color: red; } |
+.inner2 .nomatch { color: red; } |
+</style> |
+<div id="outer"> |
+ <div id="inner1"> |
+ <div></div> |
+ </div> |
+ <div id="inner2"> |
+ <div attr></div> |
+ </div> |
+</div> |
+<script> |
+description("Test invalidation set scope for attribute features."); |
+ |
+document.body.offsetLeft; // force style recalc. |
+ |
+document.getElementById("inner1").className = "inner1"; |
+document.getElementById("inner2").className = "inner2"; |
+if (window.internals) |
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); |
+</script> |