diff --git a/benches/src/yoga_helpers.rs b/benches/src/yoga_helpers.rs index 3a5a96ba2..70ff47143 100644 --- a/benches/src/yoga_helpers.rs +++ b/benches/src/yoga_helpers.rs @@ -98,6 +98,7 @@ pub fn apply_taffy_style(node: &mut yg::Node, style: &tf::Style) { node.set_display(match style.display { tf::Display::None => yg::Display::None, tf::Display::Flex => yg::Display::Flex, + tf::Display::Contents => panic!("Yoga does not support display: contents"), tf::Display::Grid => panic!("Yoga does not support CSS Grid layout"), tf::Display::Block => panic!("Yoga does not support CSS Block layout"), });