diff --git a/components/layout_2020/table/layout.rs b/components/layout_2020/table/layout.rs index acb24445b28..bfd0b94ca12 100644 --- a/components/layout_2020/table/layout.rs +++ b/components/layout_2020/table/layout.rs @@ -240,15 +240,11 @@ impl Zero for CellOrTrackMeasure { impl<'a> TableLayout<'a> { fn new(table: &'a Table) -> TableLayout<'a> { - // It's not clear whether `inline-size: stretch` allows fixed table mode or not, - // we align with Gecko and Blink. - // . - let is_in_fixed_mode = table.style.get_table().clone_table_layout() == - TableLayoutMode::Fixed && - !matches!( - table.style.box_size(table.style.writing_mode).inline, - Size::Initial | Size::MaxContent - ); + // The CSSWG resolved that only `inline-size: auto` can prevent fixed table mode. + // + let style = &table.style; + let is_in_fixed_mode = style.get_table().table_layout == TableLayoutMode::Fixed && + !style.box_size(style.writing_mode).inline.is_initial(); Self { table, pbm: PaddingBorderMargin::zero(), diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index 3d9ae7c946f..28ef2f13014 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -596238,7 +596238,7 @@ ] ], "fixed-layout-2.html": [ - "8b805af7669ed914dc5f0d007a2ff8171f45d60a", + "d751954714cd7b8c1f5b87182d1025474c5c4939", [ null, {} diff --git a/tests/wpt/meta/css/css-tables/fixed-layout-2.html.ini b/tests/wpt/meta/css/css-tables/fixed-layout-2.html.ini deleted file mode 100644 index 387f3f4261a..00000000000 --- a/tests/wpt/meta/css/css-tables/fixed-layout-2.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[fixed-layout-2.html] - [max-content] - expected: FAIL diff --git a/tests/wpt/tests/css/css-tables/fixed-layout-2.html b/tests/wpt/tests/css/css-tables/fixed-layout-2.html index 8b805af7669..d751954714c 100644 --- a/tests/wpt/tests/css/css-tables/fixed-layout-2.html +++ b/tests/wpt/tests/css/css-tables/fixed-layout-2.html @@ -3,6 +3,7 @@ +