JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<div>
</div>
</div>
CSS
div {
height: 100px;
width: 100px;
background: blue;
overflow: auto;
}
div > div {
background: teal;
height: 200px;
transform: scale(.5);
}
<div>
<div>
</div>
</div>
div {
height: 100px;
width: 100px;
background: blue;
overflow: auto;
}
div > div {
background: teal;
height: 200px;
transform: scale(.5);
}