wpt / css / CSS2 / tables / table-cell-dynamic-color.html

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

/css/CSS2/tables/table-cell-dynamic-color.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Test: table cell with dynamically changing `color`</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display">
<link rel="match" href="../../reference/ref-filled-green-200px-square.html">

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
#target {
  display: table-cell;
  font: 200px/1 Ahem;
  color: red;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="target">X</div>

<script src="/common/reftest-wait.js"></script>
<script>
requestAnimationFrame(() => requestAnimationFrame(() => {
  document.getElementById("target").style.color = "green";
  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>