wpt / css / css-ui / text-overflow-change-color.html

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

/css/css-ui/text-overflow-change-color.html

<!DOCTYPE html>
<title>Test ellipsis style</title>
<link rel="match" href="reference/text-overflow-change-color-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-ui-3/#ellipsing-details">
<link rel="author" href="kojii@chromium.org">
<meta name="assert" content="Changing the color of the container should also change the color of ellipsis">
<style>
div {
  color: red;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: pre;
  font-size: 50px;
  width: 5ch;
}
</style>
<body>
<div id=container>123456789</div>
<script>
document.body.offsetTop;
container.style.color = 'lime';
</script>
</body>

/css/css-ui/reference/text-overflow-change-color-ref.html

<!DOCTYPE html>
<style>
div {
  color: lime;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: pre;
  font-size: 50px;
  width: 5ch;
}
</style>
<body>
<div id=container>123456789</div>
</body>