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/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto.html

Issue 882173002: When a positioned object's dependence on content height changes we need to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated 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/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto.html
diff --git a/LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto.html b/LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto.html
new file mode 100644
index 0000000000000000000000000000000000000000..25a1231ef080058129d4ec3fecf27580fc50f652
--- /dev/null
+++ b/LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML>
+<style>
+body {
+ margin: 0;
+}
+#test {
+ position: absolute;
+ background-color: green;
mstensho (USE GERRIT) 2015/02/02 19:34:03 Without the changes I suggested, regarding adding
+ top: 0;
+ left: 0;
+ right: 0;
+}
+</style>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+function runTest()
+{
+ var test = document.getElementById('test');
+ document.body.offsetTop;
+ test.style['bottom'] = '50%';
+ document.body.offsetTop;
+ test.style['bottom'] = 'auto';
+ window.checkLayout("#test");
+}
+window.onload = runTest;
+</script>
+Tests positioned movement layout when its height is changed by top/bottom changing from auto to fixed and back again.
+<div id="test" data-expected-height=0></div>
« no previous file with comments | « no previous file | LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698