aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/block.rs')
-rw-r--r--components/layout/block.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs
index 6124492dca7..379b4f7fdea 100644
--- a/components/layout/block.rs
+++ b/components/layout/block.rs
@@ -1429,6 +1429,9 @@ impl BlockFlow {
/// Determines the type of formatting context this is. See the definition of
/// `FormattingContextType`.
pub fn formatting_context_type(&self) -> FormattingContextType {
+ if self.is_inline_flex_item() || self.is_block_flex_item() {
+ return FormattingContextType::Other
+ }
let style = self.fragment.style();
if style.get_box().float != float::T::none {
return FormattingContextType::Other