(el: HTMLDivElement | null)
| 637 | } |
| 638 | |
| 639 | function fixSafariTransform(el: HTMLDivElement | null) { |
| 640 | // WebKit has a bug where the toasts display in the wrong position (CSS transform is not applied correctly). |
| 641 | // Work around this by removing it, forcing a reflow, and re-applying. |
| 642 | if (el && isWebKit()) { |
| 643 | let translate = el.style.translate; |
| 644 | el.style.translate = ''; |
| 645 | el.offsetHeight; |
| 646 | el.style.translate = translate; |
| 647 | } |
| 648 | } |
nothing calls this directly
no outgoing calls
no test coverage detected