flex-basis stops to work after applying position: absolute or fixed to the element because it is out of flex context. The right answer — 1rem.
P.S. All free subscription will expire on September 1st. Please, consider upgrading to a paid subscription, if you wanna continue reading