Skip to content

Commit

Permalink
notes to self
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 7, 2025
1 parent 16f4725 commit 2cd81c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/svelte/src/internal/client/dom/elements/transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ export function transition(flags, element, get_fn, get_params) {

var inert = element.inert;

/**
* The default overflow style, stashed so we can revert changes during the transition
* that are necessary to work around a Safari <18 bug
* TODO 6.0 remove this, if older versions of Safari have died out enough
*/
var overflow = element.style.overflow;

/** @type {Animation | undefined} */
Expand Down Expand Up @@ -386,6 +391,11 @@ function animate(element, options, counterpart, t2, on_finish) {
var keyframes = [];

if (duration > 0) {
/**
* Whether or not the CSS includes `overflow: hidden`, in which case we need to
* add it as an inline style to work around a Safari <18 bug
* TODO 6.0 remove this, if possible
*/
var needs_overflow_hidden = false;

if (css) {
Expand Down

0 comments on commit 2cd81c7

Please sign in to comment.