Skip to content

Commit

Permalink
Allow finishing anonymous inline-table at the end of inline elements
Browse files Browse the repository at this point in the history
This avoids inserting it outside of its parent.
  • Loading branch information
Loirooriol authored and servo-wpt-sync committed Mar 14, 2024
1 parent c15acce commit 19ffb2b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/CSS2/tables/table-anonymous-objects-213-ref.xht
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!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>
<span style="border: solid; vertical-align: top">left right</span>
</body>
</html>
19 changes: 19 additions & 0 deletions css/CSS2/tables/table-anonymous-objects-213.xht
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!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/31649"/>
<link rel="match" href="table-anonymous-objects-213-ref.xht"/>
<meta assert="The table cell is wrapped inside an anonymous inline-level table,
so the text 'right' should appear at the right of 'left',
and the border should surround both of them."/>
</head>
<body>
<span style="border: solid; vertical-align: top">
left
<span style="display: table-cell">right</span>
</span>
</body>
</html>

0 comments on commit 19ffb2b

Please sign in to comment.