Index: third_party/WebKit/LayoutTests/paint/invalidation/create-layer-repaint.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/create-layer-repaint.html b/third_party/WebKit/LayoutTests/paint/invalidation/create-layer-repaint.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..43ee1da818cbd6b89177750fe4d578cd9bc4fa0b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/create-layer-repaint.html |
@@ -0,0 +1,34 @@ |
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
+ "http:/xhtml1/DTD/xhtml1-strict.dtd"> |
+<html> |
+<head> |
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
+ <title>CSS Transition test case</title> |
+ <style type="text/css" media="screen"> |
+ .stretchy { |
+ background: green; |
+ opacity: 0.5; |
+ height: 50px; |
+ width: 250px; |
+ margin: 20px; |
+ } |
+ |
+ .stretchy.big { |
+ background: red; |
+ opacity: 1; |
+ width: 500px; |
+ } |
+ </style> |
+ <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+ <script> |
+ function repaintTest() |
+ { |
+ document.getElementById('test').className = 'stretchy'; |
+ } |
+ </script> |
+</head> |
+<body onload="runRepaintAndPixelTest()"> |
+ <p>If you see red, the test failed</p> |
+ <div id="test" class="big stretchy"></div> |
+</body> |
+</html> |