Loading
Bug 1762885. Make sure the transition we use to fade out swipe to nav ui...
Bug 1762885. Make sure the transition we use to fade out swipe to nav ui element will actually run. r=hiro We can get into a state where box.style.opacity = 1 but that hasn't been flushed to the style system yet, the style system thinks the value is 0, so when we set box.style.opacity = 0 later it won't cause any transition to start and transitionend will never happen and the ui element will never been shown with non-zero opacity. We use getComputedStyle to flush the value to the style system, this has two positive effects. It means we will show the ui element with non-zero opacity as well as making sure the transition will happen and transitionend will be called. I think getComputedStyle should only flush in the relevant subtree (two elements total) so this should be fine. Differential Revision: https://phabricator.services.mozilla.com/D142822