diff --git a/packages/blitz-dom/src/layout/construct.rs b/packages/blitz-dom/src/layout/construct.rs index e712a15fb..d96df7f94 100644 --- a/packages/blitz-dom/src/layout/construct.rs +++ b/packages/blitz-dom/src/layout/construct.rs @@ -310,6 +310,11 @@ fn classify_flow_children( continue; } + // display:none children generate no boxes and cast no vote + if matches!(display.outside(), DisplayOutside::None) { + continue; + } + let is_in_flow = matches!( position, PositionProperty::Static | PositionProperty::Relative | PositionProperty::Sticky