Index: third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-none-to-display-block.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-none-to-display-block.html b/third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-none-to-display-block.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..779741689499f3b8fc13a1492983b9e0f9ce50ca |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-none-to-display-block.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
esprehn
2016/12/16 21:29:44
ditto
erikchen
2016/12/16 22:42:11
Done.
|
+<script src="resources/text-based-repaint.js" type="text/javascript"></script> |
esprehn
2016/12/16 21:29:44
remove type attr
erikchen
2016/12/16 22:42:11
Done.
|
+<script> |
+function repaintTest() |
+{ |
+ iframe.style.display = "block"; |
+} |
+window.addEventListener("load", runRepaintAndPixelTest, false); |
esprehn
2016/12/16 21:29:44
default is false, you can leave it out
erikchen
2016/12/16 22:42:11
Done.
|
+</script> |
+<body> |
+ <p><a href="https://code.google.com/p/chromium/issues/detail?id=650433">issue 650433</a>: |
+ display:none iframes do not have layout objects<br> |
+ The test checks that changing the style of an iframe from none to block |
+ creates the right sequence of paint invalidations. |
+ </p> |
+ <iframe id="iframe" width="728" height="90" style="display: none"></iframe> |
+</body> |
+</html> |