Negative z-index and isolution: isolate are the best friends
All childs with negative z-index will be hidden by any parent to that background-color is set. But isolation: isolate stops it. Just add it to the parent and elements with negative z-index start to position from it.
P.S. All free subscription will expire on September 1st. Please, consider upgrading to a paid subscription, if you wanna continue reading
If you have any problems, please contact me melnik909@ya.ru