wpt / css / css-display / display-contents-table-003.html

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

/css/css-display/display-contents-table-003.html

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>CSS Test: CSS display:contents in table layout</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
<link rel="help" href="https://github.com/servo/servo/issues/42070">
<link rel="match" href="../reference/ref-filled-green-200px-square.html">

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div { color: red; font: 40px / 1 Ahem; }
span { display: contents; color: green; }
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>

<div style="display: table"><span>XXXXX</span></div>
<div style="display: table-caption"><span>XXXXX</span></div>
<div style="display: table-row-group"><span>XXXXX</span></div>
<div style="display: table-row"><span>XXXXX</span></div>
<div style="display: table-cell"><span>XXXXX</span></div>

<script src="/common/reftest-wait.js"></script>
<script>
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>