Index: third_party/WebKit/LayoutTests/paint/invalidation/transform-repaint-descendants.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/transform-repaint-descendants.html b/third_party/WebKit/LayoutTests/paint/invalidation/transform-repaint-descendants.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8e6240630f8e0d6188cab568ca63672378108516 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/transform-repaint-descendants.html |
@@ -0,0 +1,51 @@ |
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http:/html4/strict.dtd"> |
+<html> |
+<head> |
+ <title>Transform Repaint Descendants</title> |
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
+ <style type="text/css"> |
+ #box { |
+ position:relative; |
+ top: 100px; |
+ left: 100px; |
+ height: 200px; |
+ width: 200px; |
+ background-color: #CCC; |
+ border: 1px solid black; |
+ } |
+ |
+ #box > div { |
+ position: absolute; |
+ height: 50px; |
+ width: 400px; |
+ top: 75px; |
+ left: 75px; |
+ background-color: #555; |
+ } |
+ </style> |
+ <script src="resources/text-based-repaint.js" type="text/javascript" charset="utf-8"></script> |
+ <script type="text/javascript" charset="utf-8"> |
+ var gAngle = 20; |
+ function incrementAngle() |
+ { |
+ document.getElementById('box').style.webkitTransform = 'rotate(' + gAngle + 'deg)'; |
+ gAngle += 3; |
+ } |
+ |
+ function repaintTest() |
+ { |
+ incrementAngle(); |
+ } |
+ |
+ function startTest() |
+ { |
+ incrementAngle(); |
+ runRepaintAndPixelTest(); |
+ } |
+ </script> |
+</head> |
+<body onload="startTest()"> |
+ <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22088">https://bugs.webkit.org/show_bug.cgi?id=22088</a>. The rotated box should be correctly redrawn.</p> |
+ <div id="box"><div></div></div> |
+</body> |
+</html> |