There is such code:
<div class="main" style="background: #acdf43; text-align: center;"> <div class="l1" style="display: inline-block; background: #aaa;">123123123123123123123123123<br>321321321321321321321321321321321321321321321<br>111111111111111111<br>222222<br>333333333</div> <div class="l2" style="display: inline-block; background: #f00; vertical-align: bottom; height: 100%; width: 100px;">000</div> </div> The block L1 has a variable height and width. It is necessary that the L2 block has the same height as the L1 block. Set height: 100% does not help. The height does not change.
For L1, the width is not set, but for L2 it is set and fixed.
Here are screenshots to understand. There is now: 
(source: joxi.ru )
It is necessary: 
(source: joxi.ru )