Skip to content

Screenshots appear white on iOS Safari 18.0.1 #527

@max-got

Description

@max-got

Describe the Problem

Screenshots on svelte.dev show up completely white on iOS Safari 18.0.1. Interestingly, everything works fine in dev mode (pnpm dev --host (???)) .

Image

svelte_dev_safari

Describe the proposed solution

Could try changing --safari-fix to translateZ(0). However, I can't verify if this works since the dev environment doesn't reproduce the issue and the repo doesn't let me pnpm build && pnpm preview the site.

Reproduction

  1. Visit svelte.dev on iOS Safari
  2. Current CSS:
.screenshots {
/* ... */
  filter: grayscale();
  -webkit-transform: var(--safari-fix); /* = translate3d(0,0,.01) */
}

System Info

  • Device: iPhone 11 Pro
  • OS: iOS 18.0.1
  • Browser: Safari
  • URL: svelte.dev

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions