Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinner is off-center at zoom levels other than 100% in Safari #11

Open
DePasqualeOrg opened this issue Dec 12, 2023 · 0 comments
Open

Comments

@DePasqualeOrg
Copy link

Here's a minimal reproduction. I tested this on the latest Safari (17.2) and confirmed that it's still an issue.

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Off-center spinner</title>
  <style>
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
    }

    .spinner_aj0A {
      transform-origin: center;
      animation: spinner_KYSC 0.75s infinite linear;
      fill: hsl(var(--muted-foreground));
    }

    @keyframes spinner_KYSC {
      100% {
        transform: rotate(360deg);
      }
    }
  </style>
</head>

<body>
  <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
    <path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" class="spinner_aj0A" />
  </svg>
</body>

</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant