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

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

Issue 285103003: [RAL] Make sure RenderLayers are invalidated when moved. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test Expectations 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
« no previous file with comments | « LayoutTests/fast/repaint/crbug-371640.html ('k') | LayoutTests/fast/repaint/crbug-371640-2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/crbug-371640-2.html
diff --git a/LayoutTests/fast/repaint/crbug-371640-2.html b/LayoutTests/fast/repaint/crbug-371640-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..b638bb43869402597e231bf4e3fca1fc55eb4c09
--- /dev/null
+++ b/LayoutTests/fast/repaint/crbug-371640-2.html
@@ -0,0 +1,66 @@
+<!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('node').remove();
+
+ if (window.testRunner) {
+ runAfterDisplay(function() {
+ testRunner.notifyDone();
+ });
+ }
+ }
+ onload = runRepaintTest;
+</script>
+
+<style>
+#wrapper {
+ visibility: hidden;
+ position: absolute;
+ width: 600px;
+}
+.outer { float: left; }
+.inner {
+ float: left;
+ height: 100px;
+ position: relative;
+ width: 260px;
+}
+.abs_pos { position: absolute; }
+#container { float: right; }
+.item {
+ visibility: visible;
+ background-color: green;
+ width: 100px;
+ height: 100px;
+}
+#node .item { background-color: red; }
+</style>
+
+<p>This is a reduction for http://crbug.com/371640.</p>
+<p>The test PASSES if you see 1 green square and no red square.</p>
+
+<div id='wrapper'>
+ <div id='container'>
+ <div id='keep_outer' class='outer'>
+ <div>
+ <div id='keep_inner' class='inner'>
+ <div class='abs_pos'>
+ <div id='keep' class='item'> </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div id='node' class='outer'>
+ <div id='to_remove_inner' class='inner'>
+ <div id='to_remove' class='item'> </div>
+ </div>
+ </div>
+ </div>
+</div>
« no previous file with comments | « LayoutTests/fast/repaint/crbug-371640.html ('k') | LayoutTests/fast/repaint/crbug-371640-2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698