wpt / css / css-overflow / line-clamp / line-clamp-content-height-with-dynamic-change.html

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

/css/css-overflow/line-clamp/line-clamp-content-height-with-dynamic-change.html

<!DOCTYPE html>
<title>CSS Overflow: appending to a box with -webkit-line-clamp</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp">
<link rel="match" href="reference/line-clamp-content-height-with-dynamic-change-ref.html">
<style>
#container {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 20px;
  font-family: Monospace;
  overflow: hidden;
}
</style>
<body>
  <div id="container">first line<br>second line<br>PASS if this is not visible<br></div>
<script>
  document.body.offsetTop;
  let span = document.createElement('span');
  span.textContent = "PASS if this is not visible";
  container.appendChild(span);
</script>
</body>

/css/css-overflow/line-clamp/reference/line-clamp-content-height-with-dynamic-change-ref.html

<!DOCTYPE html>
<title>CSS Overflow: appending to a box with -webkit-line-clamp</title>
<style>
div {
  font-family: Monospace;
  font-size: 20px;
}
</style>
<body>
  <div>first line<br>second line&#x2026;</div>
</body>