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

Unified Diff: LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf.html

Issue 1294063005: Recalculate intrinsic widths in the old containing block chain when going out of flow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make fast/layers/scroll-descendant-with-cached-cliprects.html NOT depend on the bug that this CL fi… Created 5 years, 4 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/positioning/static-to-abspos-parent-is-stf-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf.html
diff --git a/LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf.html b/LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf.html
new file mode 100644
index 0000000000000000000000000000000000000000..9fac651adba8a3605c3be29cef2e427ee2dfc9fe
--- /dev/null
+++ b/LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../../resources/check-layout.js"></script>
+<p>Change from position:static to position:absolute when the parent is a shrink-to-fit container.
+ The parent needs to recalculate its intrinsic size when this happens.</p>
+<p>There should be a black <em>square</em> below.</p>
+<div id="container" style="float:left; border:20px solid black;" data-expected-width="40" data-expected-height="40">
+ <div id="test" style="width:100px; height:100px;"></div>
+</div>
+<p id="result" style="clear:both;"></p>
+<script>
+ var test = document.getElementById("test");
+ test.offsetTop;
+ test.style.position = "absolute";
+ checkLayout("#container", document.getElementById("result"));
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698