Skip to content

Commit

Permalink
End ongoing IFC when inserting anonymous block-level table
Browse files Browse the repository at this point in the history
So that the table appears after preceding inline-level contents.
Fixes #31603.
  • Loading branch information
Loirooriol authored and servo-wpt-sync committed Mar 13, 2024
1 parent 2a5fc85 commit 2d1637c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions css/CSS2/tables/table-anonymous-objects-212-ref.xht
Original file line number Diff line number Diff line change
@@ -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>
16 changes: 16 additions & 0 deletions css/CSS2/tables/table-anonymous-objects-212.xht
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 2d1637c

Please sign in to comment.