You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you explicitly set overflow-y and/or overflow-x as an inline style on an element that has a transition, they are removed on completion of the transition. However, if overflow is set it won't be removed.
I noticed this on the fly transition but from what Patrick mentioned in the Discord post it appears to affect all transitions.
Patrick noticed the transition code is only readingelement.style.overflow (which is empty when element.style.overflowY is set) here and sets it back to it at the end here.
The text was updated successfully, but these errors were encountered:
fraser-0
changed the title
Transitions strips overflow-y and overflow-x inline style
Transitions strip overflow-y and overflow-x inline style
Feb 18, 2025
Describe the bug
If you explicitly set
overflow-y
and/oroverflow-x
as an inline style on an element that has a transition, they are removed on completion of the transition. However, ifoverflow
is set it won't be removed.I noticed this on the
fly
transition but from what Patrick mentioned in the Discord post it appears to affect all transitions.Patrick noticed the transition code is only reading
element.style.overflow
(which is empty when element.style.overflowY is set) here and sets it back to it at the end here.Reproduction
I have created this playground to highlight the issue. You can replace the inline style element to
overflow: auto
to see it work fine.Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: