Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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:vmpstr@chromium.org">
<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>