I've run into a frustrating issue with Microsoft Edge and CSS while tackling a step-by-step form with vertical transitions.
All steps are set to position: absolute
. The parent container holding the steps has a position: relative
.
The current step is centered on the screen. As each subsequent step is revealed, it "pushes" the current step up by setting its position to bottom: -100%
.
Meanwhile, the previous step moves out of view towards the top by having top: -100%
.
In Microsoft Edge, the first two steps function correctly. However, upon reaching the third step, the bottom: -100%
suddenly behaves as if it's been set to bottom: 0px
. This causes all steps to stack at the bottom of the screen, making the form look messy and unusable.
Interestingly, I don't encounter this issue in Chrome or Firefox. Could there be some specific behavior in Edge related to elements with a position: absolute
property that I need to be aware of?
Here's a diagram illustrating how other browsers handle the layout seamlessly: