Shifting in a closed fence gate keeps you shifted in first person but not third person.
(Is Shifting in a closed fence gates supposed to keep you the shifted position if you held down shift and closed the gate?)
Video too large - https://youtu.be/iilzoI1ySKM
Thank you for your report!
We're actually already tracking this issue in MC-149259, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.