aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/block.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs
index 1f4eb92ea51..80c0fae2243 100644
--- a/components/layout/block.rs
+++ b/components/layout/block.rs
@@ -1682,6 +1682,13 @@ impl BlockFlow {
/// Determines the type of formatting context this is. See the definition of
/// `FormattingContextType`.
pub fn formatting_context_type(&self) -> FormattingContextType {
+ if self
+ .base
+ .flags
+ .contains(FlowFlags::IS_ABSOLUTELY_POSITIONED)
+ {
+ return FormattingContextType::Other;
+ }
if self.is_inline_flex_item() || self.is_block_flex_item() {
return FormattingContextType::Other;
}