<!DOCTYPE html>
<style>
    div.container {
        -webkit-writing-mode: vertical-rl;
        inline-size: 80px;
        block-size: 200px;
        outline: solid blue;
    }
</style>
<div class="container">
    <div style="width: 40px; background-color: green;"></div>
</div>
<div style="height: 25px;"></div>
<div class="container">
    <div style="width: 60px; background-color: green;"></div>
</div>
