diff options
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r-- | components/layout_2020/flow/construct.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs index e0aab3ccffb..a7056f23ca9 100644 --- a/components/layout_2020/flow/construct.rs +++ b/components/layout_2020/flow/construct.rs @@ -331,7 +331,9 @@ where contents: replaced, }), Ok(non_replaced) => match display_inside { - DisplayInside::Flow => { + DisplayInside::Flow | + // TODO: Properly implement display: inline-block. + DisplayInside::FlowRoot => { // Whatever happened before, we just found an inline level element, so // all we need to do is to remember this ongoing inline level box. self.ongoing_inline_boxes_stack.push(InlineBox { @@ -350,10 +352,6 @@ where inline_box.last_fragment = true; Arc::new(InlineLevelBox::InlineBox(inline_box)) }, - DisplayInside::FlowRoot => { - // a.k.a. `inline-block` - unimplemented!() - }, DisplayInside::None | DisplayInside::Contents => panic!(":("), }, }; |