Skip to content

Commit 58e46d7

Browse files
Arukuenbfintal
andauthored
fix: fix lazy-loaded images in safari (#3684)
* fix: fix lazyloaded images in safari * Apply suggestion from @bfintal * Apply suggestion from @bfintal --------- Co-authored-by: Benjamin Intal <bfintal@gmail.com>
1 parent b5e85f0 commit 58e46d7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/block-components/image/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,11 @@
7070
border-radius: 9999px !important;
7171
}
7272
}
73+
74+
// This is needed to fix the images rendering as lines when lazy-loaded in Safari. We target only the known issue here based on lazy loading from another plugin so as not to affect other uses of the image
75+
// Targets Safari 9+ on iOS and macOS, works as of late 2025.
76+
@supports (font: -apple-system-body) {
77+
img.stk-img.lazyloaded {
78+
will-change: transform;
79+
}
80+
}

0 commit comments

Comments
 (0)