Text selection on flex reverse-column child happened in wrong direction

I’m trying to select text in flex reverse-column container but actual selection is wrong. Browser attempts to make selection from end of the element, that leads to wrong selection.

Example,

<div style="flex-direction: column-reverse; display: flex;">
  <div>1 wwww</div>
  <div>2 wwww</div>
  <div>
    3 wwww
    <br/>
    4 wwww
  </div>
  <div>5 wwww</div>
</div>

try to select from left top corner to the center of the text.

enter image description here

Expected: 5 wwww 3 wwww 4 ww is selected. Actual: ww is selected.