diff options
-rw-r--r-- | components/layout_2020/flow/construct.rs | 1 | ||||
-rw-r--r-- | tests/wpt/meta/MANIFEST.json | 17 | ||||
-rw-r--r-- | tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212-ref.xht | 11 | ||||
-rw-r--r-- | tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212.xht | 16 |
4 files changed, 45 insertions, 0 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs index 78ac76d2c6a..0c8982cb005 100644 --- a/components/layout_2020/flow/construct.rs +++ b/components/layout_2020/flow/construct.rs @@ -317,6 +317,7 @@ where self.current_inline_level_boxes() .push(ArcRefCell::new(InlineLevelBox::Atomic(ifc))); } else { + self.end_ongoing_inline_formatting_context(); let anonymous_info = self.info.new_anonymous(ifc.style().clone()); let table_block = ArcRefCell::new(BlockLevelBox::Independent(ifc)); self.block_level_boxes.push(BlockLevelJob { diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index c400c1a3372..759021b7e4c 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -106169,6 +106169,19 @@ {} ] ], + "table-anonymous-objects-212.xht": [ + "e6bdfd5dd9bc30897c7e672493550600147487d8", + [ + null, + [ + [ + "/css/CSS2/tables/table-anonymous-objects-212-ref.xht", + "==" + ] + ], + {} + ] + ], "table-anonymous-text-indent.xht": [ "1364f79033c9b489a2c0a5eebe5e6ad2d8a89a2e", [ @@ -377975,6 +377988,10 @@ "5133164219b73747fb0f40fc98cb4a7bfca8b56a", [] ], + "table-anonymous-objects-212-ref.xht": [ + "4781f3c52702c92cedd61e79d0f9471316f7f4bd", + [] + ], "table-backgrounds-bc-cell-001-ref.xht": [ "4ee2659b4458c95b53dfbd16071d4aed7b11a3b7", [] diff --git a/tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212-ref.xht b/tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212-ref.xht new file mode 100644 index 00000000000..4781f3c5270 --- /dev/null +++ b/tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212-ref.xht @@ -0,0 +1,11 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Reftest Reference</title> + <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"/> +</head> +<body> + above<br /> + below +</body> +</html> diff --git a/tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212.xht b/tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212.xht new file mode 100644 index 00000000000..e6bdfd5dd9b --- /dev/null +++ b/tests/wpt/tests/css/CSS2/tables/table-anonymous-objects-212.xht @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: Anonymous table objects</title> + <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/> + <link rel="help" href="https://github.com/servo/servo/issues/31603"/> + <link rel="match" href="table-anonymous-objects-212-ref.xht"/> + <meta assert="The table cell is wrapped inside an anonymous block-level table, + so the text 'below' should appear below 'above'."/> +</head> +<body> + above + <span style="display: table-cell">below</span> +</body> +</html> |