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

Unified Diff: LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html

Issue 837233002: Revert of Revert of Don't check for layout in a canvas if it it's already needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « no previous file | LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html
diff --git a/LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html b/LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html
new file mode 100644
index 0000000000000000000000000000000000000000..3d52fdf94b68faf49925db9311fb4e07c64df99f
--- /dev/null
+++ b/LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html
@@ -0,0 +1,24 @@
+<!doctype HTML>
+crbug.com/445285: Do not crash when an element becomes positioned.
+<style>
+ .container{background-size:50; float:right; }
+ #canvas-image,#canvas-padding{display: table-cell};
+</style>
+<script src="../../resources/check-layout.js"></script>
+<div class="container">
+ <canvas id="canvas-padding" data-expected-width=300 data-expected-height=150></canvas>
+</div>
+<pre id="layer-tree">
+<script>
+ var test0=document.getElementById("canvas-padding")
+ var test2=document.getElementById("layer-tree")
+ document.execCommand("usecss", "false")
+ test2.appendChild(test0.cloneNode(true));
+ test2.style['position']='absolute';
+ var styleSheet0 = document.styleSheets[0];
+ styleSheet0.insertRule('.container{display: table;}',0);
+ document.execCommand("JustifyRight", false)
+ document.body.style.zoom=0.50
+ document.body.offsetTop;
+ window.checkLayout("#canvas-padding");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698