Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/dynamic-bsize-change.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Test: Dynamic change to the block size inside an auto-sized flex item</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="dynamic-bsize-change-ref.html">
<style>
div {
border: 1px solid;
}
#myHeightChanges {
width: 100px;
height: 100px;
background: green;
}
</style>
<div style="display:flex; flex-direction:column">
<div style="height:auto">
<div id="myHeightChanges"></div>
</div>
</div>
<script>
onload = function() {
window.unused = myHeightChanges.offsetTop;
myHeightChanges.style.height = "200px";
}
</script>