Index: LayoutTests/fast/repaint/invalidate-invisible-element.html |
diff --git a/LayoutTests/fast/repaint/invalidate-invisible-element.html b/LayoutTests/fast/repaint/invalidate-invisible-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27764617fb1a6b3235ab2f9f0f62741e024c8fe8 |
--- /dev/null |
+++ b/LayoutTests/fast/repaint/invalidate-invisible-element.html |
@@ -0,0 +1,26 @@ |
+<html> |
esprehn
2014/08/11 20:51:56
no doctype.
|
+<head> |
+ <script src="../../resources/run-after-display.js"></script> |
+ <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+ <script type="text/javascript"> |
+ window.onload = function() { |
+ runRepaintTest(); |
+ }; |
+ |
+ function repaintTest() { |
+ var target = document.getElementById('target'); |
+ target.style.visibility = 'visible'; |
+ getComputedStyle(target).color; |
+ target.style.top = '300px'; |
+ } |
+ </script> |
+</head> |
+<body> |
+ <div id="target" |
+ style="visibility:hidden; |
+ position: absolute; |
+ top: 200px; left: 200px; |
+ width: 200px; height: 200px; |
+ background-color: redl "></div> |
+</body> |
+</html> |