Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: LayoutTests/fast/repaint/offset-change-wrong-invalidation-with-float.html

Issue 706353002: Revert paint-invalidation-container ASSERT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added a missing test to rebaselin. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/repaint/offset-change-wrong-invalidation-with-float.html
diff --git a/LayoutTests/fast/repaint/offset-change-wrong-invalidation-with-float.html b/LayoutTests/fast/repaint/offset-change-wrong-invalidation-with-float.html
new file mode 100644
index 0000000000000000000000000000000000000000..fdecabd676fe82e6d4bd2278683714051f5702e2
--- /dev/null
+++ b/LayoutTests/fast/repaint/offset-change-wrong-invalidation-with-float.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="resources/text-based-repaint.js"></script>
+<style>
+#menu {
+ float: left;
+ position: relative;
+}
+
+#watches {
+ float: left;
+ transform: scale(1,1);
+}
+
+#placeholder {
+ position: relative;
+ backface-visibility: hidden;
+}
+
+#submenu {
+ position: absolute;
+ top: -200px;
+ background: red;
+}
+</style>
+
+</head>
+<body>
+<div>This test has passed if there is no red rectangle below.</div>
+<ul>
+ <li id="watches"><span id="placeholder"></span></li>
+ <li id="menu">
+ <ul id="submenu">
+ <li></li>
+ </ul>
+ </li>
+</ul>
+
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+window.testIsAsync = true;
+
+var submenu = document.getElementById("submenu");
+function repaintTest()
+{
+ submenu.style.top = "-200px";
+ finishRepaintTest();
+}
+
+window.requestAnimationFrame(function() {
+ submenu.style.top = "50px";
+ window.requestAnimationFrame(function() {
+ runRepaintTest();
+ });
+});
+</script>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/offset-change-wrong-invalidation-with-float-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698