Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-013.html - WPT Dashboard Interop Dashboard
<!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>