diff --git a/engine/layout.js b/engine/layout.js index 2c06c57..ef19ee2 100644 --- a/engine/layout.js +++ b/engine/layout.js @@ -486,7 +486,7 @@ export class LayoutNode extends Node { // if we have block children with width: auto, become block if (this.children.some(x => x.isBlock() && x.css().width === 'auto')) return true; - return this.display() === 'block' || this.display() === 'list-item'; + return this.display() === 'block' || this.display() === 'list-item' || this.display() === 'flex'; } isInline() { return !this.isBlock();