From 61bf17bbef3c80477a761f67476a801fbb3c5721 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Fri, 13 Dec 2024 16:39:23 +1300 Subject: [PATCH] stylo_taffy: map TableCell display to Block --- packages/stylo_taffy/src/convert.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/stylo_taffy/src/convert.rs b/packages/stylo_taffy/src/convert.rs index 338cc5b3..a4b7dc7b 100644 --- a/packages/stylo_taffy/src/convert.rs +++ b/packages/stylo_taffy/src/convert.rs @@ -137,6 +137,8 @@ pub fn display(input: stylo::Display) -> taffy::Display { stylo::DisplayInside::Flow => taffy::Display::Block, #[cfg(feature = "block")] stylo::DisplayInside::FlowRoot => taffy::Display::Block, + #[cfg(feature = "block")] + stylo::DisplayInside::TableCell => taffy::Display::Block, // TODO: Support display:contents in Taffy // TODO: Support table layout in Taffy #[cfg(feature = "grid")]