diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 68faff25430..930e8744663 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -1233,7 +1233,8 @@ impl Fragment { SpecificFragmentInfo::Table | SpecificFragmentInfo::TableCell | SpecificFragmentInfo::TableRow | - SpecificFragmentInfo::TableColumn(_) => { + SpecificFragmentInfo::TableColumn(_) | + SpecificFragmentInfo::InlineAbsoluteHypothetical(_) => { self.margin.inline_start = Au(0); self.margin.inline_end = Au(0); return diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 48b748bd81c..1be92d74c52 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -2432,6 +2432,18 @@ "url": "/_mozilla/css/inline_absolute_hypothetical_line_metrics_a.html" } ], + "css/inline_absolute_hypothetical_margin_a.html": [ + { + "path": "css/inline_absolute_hypothetical_margin_a.html", + "references": [ + [ + "/_mozilla/css/inline_absolute_hypothetical_margin_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/inline_absolute_hypothetical_margin_a.html" + } + ], "css/inline_absolute_hypothetical_metrics_a.html": [ { "path": "css/inline_absolute_hypothetical_metrics_a.html", @@ -16268,6 +16280,18 @@ "url": "/_mozilla/css/inline_absolute_hypothetical_line_metrics_a.html" } ], + "css/inline_absolute_hypothetical_margin_a.html": [ + { + "path": "css/inline_absolute_hypothetical_margin_a.html", + "references": [ + [ + "/_mozilla/css/inline_absolute_hypothetical_margin_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/inline_absolute_hypothetical_margin_a.html" + } + ], "css/inline_absolute_hypothetical_metrics_a.html": [ { "path": "css/inline_absolute_hypothetical_metrics_a.html", diff --git a/tests/wpt/mozilla/tests/css/inline_absolute_hypothetical_margin_a.html b/tests/wpt/mozilla/tests/css/inline_absolute_hypothetical_margin_a.html new file mode 100644 index 00000000000..f77e7dad3b5 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/inline_absolute_hypothetical_margin_a.html @@ -0,0 +1,14 @@ + + + + +