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

css.properties.zoom - Complex SVG elemets are distorted #24560

Open
TMarciDev opened this issue Sep 27, 2024 · 1 comment
Open

css.properties.zoom - Complex SVG elemets are distorted #24560

TMarciDev opened this issue Sep 27, 2024 · 1 comment
Labels
data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:svg 🖌️ Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG

Comments

@TMarciDev
Copy link

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

Firefox does not support more complex SVG elements.

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

SVG elements that have transform translate that can be scaled properly via zoom style tag on the body.

Did you test this? If so, how?

<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
  <!-- Main face circle -->
  <circle cx="100" cy="100" r="50" fill="red" transform="translate(0, 0)" />

  <!-- Left ear -->
  <circle cx="60" cy="60" r="30" fill="red" transform="translate(-30, -40)" />

  <!-- Right ear -->
  <circle cx="140" cy="60" r="30" fill="red" transform="translate(30, -40)" />
</svg>
body {
    zoom: 50%;
}

At zoom: 100%:
image

At zoom: 50%:
image

As you can see the same svg looks different. While chrome keeps the ratio, firefox does not.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

image
image

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/zoom

MDN metadata

MDN page report details
  • Query: css.properties.zoom
  • Report started: 2024-09-27T08:29:52.193Z
@queengooborg queengooborg added data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:svg 🖌️ Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG labels Sep 27, 2024
@evilpie
Copy link
Contributor

evilpie commented Sep 29, 2024

I can't reproduce this issue. Can you please report this bug including a complete test case at https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=SVG instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:svg 🖌️ Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG
Projects
None yet
Development

No branches or pull requests

3 participants