chromium/third_party/blink/web_tests/external/wpt/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-013.html

<!doctype html>
<html class="reftest-wait">
<meta charset="utf8">
<title>CSS contain-intrinsic-size: intrinsic-size changes.</title>
<link rel="author" title="Vladimir Levin" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override">
<link rel="match" href="contain-intrinsic-size-013-ref.html">
<meta name="assert" content="changes in intrinsic-size cause reflow">
<script src="/common/reftest-wait.js"></script>

<style>
#border {
  width: max-content;
  border: 1px solid black;
}
#border > div {
  contain-intrinsic-size: 55px 66px;
  contain: size;
}
</style>

<div id=border><div id=target></div></div>

<script>
function changeStyle() {
  document.getElementById("target").style = "contain-intrinsic-size: 77px 88px;";
  requestAnimationFrame(takeScreenshot);
}

onload = () => requestAnimationFrame(() => requestAnimationFrame(changeStyle));

</script>
</html>