wpt / css / CSS2 / tables / table-anonymous-objects-214.html

Status: FAIL | Duration: 15ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/CSS2/tables/table-anonymous-objects-214.html

<!DOCTYPE html>
<html class="reftest-wait">
<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/44549">
<link rel="match" href="../../reference/ref-filled-green-200px-square.html">
<meta assert="An anonymous table box parent is generated around the table-cell.
  This table doesn't include any of the spaces that follow the table-cell.">

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
#red {
  position: absolute;
  width: 200px;
  height: 200px;
  background: red;
  z-index: -1;
}
#test {
  white-space: pre;
  font: 200px / 1 Ahem;
  color: green;
  margin-left: -4ch;
}
#cell {
  display: table-cell;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="red"></div>
<div id="test"><div id="cell"></div></div>
<script src="/common/reftest-wait.js"></script>
<script>
document.getElementById("test").append("   ", " ", "X");
document.fonts.ready.then(takeScreenshot);
</script>
</html>

/css/reference/ref-filled-green-200px-square.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reftest Reference</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="jfernandez@igalia.com" />
<style>
div {
  background-color: green;
  height: 200px;
  width: 200px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div></div>