Index: third_party/WebKit/LayoutTests/paint/invalidation/static-to-positioned.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/static-to-positioned.html b/third_party/WebKit/LayoutTests/paint/invalidation/static-to-positioned.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..421d086a553fac1df636a83312a592efaa673afe |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/static-to-positioned.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
+ "http:/html4/strict.dtd"> |
+<html lang="en"> |
+<head> |
+ <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+ <script type="text/javascript"> |
+ function repaintTest() |
+ { |
+ document.getElementById('a').style.position='relative'; |
+ document.getElementById('t').style.position='absolute'; |
+ } |
+ </script> |
+</head> |
+<body onload="runRepaintAndPixelTest();"> |
+ <p> |
+ Repaint test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=9334">http://bugzilla.opendarwin.org/show_bug.cgi?id=9334</a> |
+ Incomplete repaint when changing block from non-positioned to positioned</i>. |
+ </p> |
+ <hr> |
+ <div style="position: relative; height: 200px;"> |
+ <div id="a" style="width: 100px; height: 100px; background: blue; top: 50px; "></div> |
+ </div> |
+ <div style="position: relative; height: 150px; padding-top: 50px;"> |
+ <div style="height: 150px;"> |
+ <div id="t" style="width: 100px; height: 100px; background: blue; top: 0;"></div> |
+ </div> |
+ </div> |
+</body> |
+</html> |