gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

Don't use block layout in flexbox test (#683)

16be601ad470d950988b15559a4defacb54f56de · by Nico Burns · (2 years ago) · parent abe29aec9 · browse the tree at this commit

Semantic delta · 1

tests/generated/flex/align_items_center_with_max_height_with_padding_border.rs

2 files · +2 −2

diff --git a/test_fixtures/flex/align_items_center_with_max_height_with_padding_border.html b/test_fixtures/flex/align_items_center_with_max_height_with_padding_border.html
index 73f6f09c2..e93ebeacd 100644
--- a/test_fixtures/flex/align_items_center_with_max_height_with_padding_border.html
+++ b/test_fixtures/flex/align_items_center_with_max_height_with_padding_border.html
@@ -8,7 +8,7 @@
   </title>
 </head>
 <body>
-<div id="test-root" style="display: block;">
+<div id="test-root" style="flex-direction: column;">
   <div style="display: flex; width: 100px; max-height: 100px; align-items: center; align-content: flex-start; padding: 10px; border-width: 10px;">
     <div style="height: 10px; width: 10px;"></div>
     <div style="height: 150px; width: 10px;"></div>
diff --git a/tests/generated/flex/align_items_center_with_max_height_with_padding_border.rs b/tests/generated/flex/align_items_center_with_max_height_with_padding_border.rs
index 45b8462ff..1eae5021c 100644
--- a/tests/generated/flex/align_items_center_with_max_height_with_padding_border.rs
+++ b/tests/generated/flex/align_items_center_with_max_height_with_padding_border.rs
@@ -92,7 +92,7 @@ fn align_items_center_with_max_height_with_padding_border() {
         .unwrap();
     let node = taffy
         .new_with_children(
-            taffy::style::Style { display: taffy::style::Display::Block, ..Default::default() },
+            taffy::style::Style { flex_direction: taffy::style::FlexDirection::Column, ..Default::default() },
             &[node0, node1],
         )
         .unwrap();