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

Unified Diff: LayoutTests/fast/flexbox/relayout-children-when-switching-direction.html

Issue 655053002: Fix incorrect assumption about children's flexBasis (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test Created 6 years, 2 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/flexbox/relayout-children-when-switching-direction.html
diff --git a/LayoutTests/fast/flexbox/relayout-children-when-switching-direction.html b/LayoutTests/fast/flexbox/relayout-children-when-switching-direction.html
new file mode 100644
index 0000000000000000000000000000000000000000..dd71bd7cdbf1466e9e8178bb83538273c5050657
--- /dev/null
+++ b/LayoutTests/fast/flexbox/relayout-children-when-switching-direction.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<style>
+#flex {
+ display: flex;
+ width: 100px;
+}
+#flex > div {
+ height: 30px;
+}
+.column {
+ flex-direction: column;
+}
+</style>
+<body>
+<div id="flex">
+ <div>Foo</div>
+ <div id="target" data-offset-y=38>Bar</div>
+</div>
+<script src="../../resources/check-layout.js"></script>
+<script>
+var flexbox = document.getElementById('flex');
+flexbox.offsetTop;
+flexbox.classList.add('column');
+checkLayout('#target');
+</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/flexbox/relayout-children-when-switching-direction-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698