Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/masonry/tentative/abspos/column-masonry-positioned-item-dynamic-change.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masonry Layout Test: Masonry positioned item dynamic change.</title>
<link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
<link rel="match" href="column-masonry-positioned-item-dynamic-change-ref.html">
<style>
.masonry {
display: masonry;
grid-template-columns: 75px 25px;
position: relative;
}
.absolute {
background: green;
position: absolute;
grid-column: 2 / 3;
top: 0;
bottom: 0;
right: 0;
left: 0;
}
</style>
</head>
<body>
<div class="masonry">
<div id="target" style="background: green; width: 100%; height: 25px;"></div>
<div style="background: red; width: 100%; height: 25px;"></div>
<div class="absolute"></div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '50px';
document.documentElement.classList.remove('reftest-wait');
</script>
</body>
</html>