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

QImg crops image with SVG images on Safari Desktop #15652

Open
DouglasCalora opened this issue Mar 30, 2023 · 2 comments
Open

QImg crops image with SVG images on Safari Desktop #15652

DouglasCalora opened this issue Mar 30, 2023 · 2 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-webpack kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@DouglasCalora
Copy link

DouglasCalora commented Mar 30, 2023

What happened?

Using SVG as images without specifying the "initial-ratio" parameter can cause image cuts when it is first loaded in Safari. Sometimes, the image is displayed correctly after reloading the page (with the F5 key), but in some cases, the cut reappears. This behavior is unique to Safari, while in Chrome, for example, images work normally.

To avoid this problem, it was possible to solve it by passing an invalid "initial-ratio" parameter, such as "initial-rate="none". This way, the bug does not occur in Safari, and the image is displayed correctly.

First load in safari:
image

After refresh in safari:
image

First / refresh in Chrome
image

What did you expect to happen?

Same behaviour as chrome

Reproduction URL

https://codepen.io/DouglasCalora/pen/KKxLXyv

How to reproduce?

1 - Enter first time in safari
2 - refresh page
3 - test in chrome

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Components (quasar)

Platforms/Browsers

Safari

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-webpack labels Mar 30, 2023
@DouglasCalora DouglasCalora changed the title QImg crops with SVG images on Safari Desktop QImg crops image with SVG images on Safari Desktop Mar 30, 2023
@pdanpdan
Copy link
Collaborator

Shouldn't this be opened on safari?

@DouglasCalora
Copy link
Author

Shouldn't this be opened on safari?

I did not understand your question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-webpack kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants