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

Unified Diff: LayoutTests/fast/repaint/crbug-371640-3.html

Issue 285103003: [RAL] Make sure RenderLayers are invalidated when moved. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months 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/crbug-371640-3.html
diff --git a/LayoutTests/fast/repaint/crbug-371640-3.html b/LayoutTests/fast/repaint/crbug-371640-3.html
new file mode 100644
index 0000000000000000000000000000000000000000..678a34c1e636c4a13381fd754e6e2b199045f436
--- /dev/null
+++ b/LayoutTests/fast/repaint/crbug-371640-3.html
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
+<script>
+ if (window.testRunner)
+ window.jsTestIsAsync = true;
+
+ function repaintTest()
+ {
+ document.getElementById('remove').style.display='none';
+
+ if (window.testRunner) {
+ runAfterDisplay(function() {
+ testRunner.notifyDone();
+ });
+ }
+ }
+ onload = runRepaintTest;
+</script>
+<style>
+#wrapper {
+ visibility: hidden;
+ position: absolute;
+ width: 600px;
+ float: right;
+}
+#container { float: right; }
+#abs_pos {
+ position: absolute;
+ bottom: 0;
+}
+#remove_child,
+#keep_child {
+ height: 100px;
+ width: 100px;
+ visibility: visible;
+}
+#remove_child {
+ background-color: red;
+ position: absolute;
+}
+#keep_child { background-color: green; }
+.outer {
+ float: left;
+ width: 100px;
+ height: 300px;
+}
+#keep_inner {
+ position: relative;
+ height: 220px;
+}
+p { visibility: visible; }
+</style>
+
+<p>This is a reduction for http://crbug.com/371640.</p>
+<p>If the test worked correctly you should see 1 green square and no red square.</p>
Julien - ping for review 2014/05/27 12:34:53 Let's stick to PASS / FAIL (there is a case to be
dsinclair 2014/05/27 15:37:13 Done.
+
+<div id='wrapper'>
+ <div id='container'>
+ <div id='keep_outer' class='outer'>
+ <div id='keep_inner'>
+ <div id='abs_pos'>
+ <div id='keep_child'> </div>
+ </div>
+ </div>
+ </div>
+ <div id='remove' class='outer'>
+ <div id='remove_child'> </div>
+ </div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698