Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8377225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:36:54+00:00 2026-06-09T15:36:54+00:00

When I use SVG in background property like this: .svg-button { -webkit-transform: scale(3.0) //

  • 0

When I use SVG in background property like this:

.svg-button {
    -webkit-transform: scale(3.0) // root of the problem!
    background: url(Button.svg) no-repeat;
    width: 32px;
    height: 32px;
}

I get blurred image as result. At the same time text in tag with this style is clear. Also if I scale page by using CTRL++ (browser zoom) instead transform property everything is clear.

If I replace CSS background property on:

<object type="image/svg+xml" data="Button.svg" width="32" height="32"></object>

the image is clear in any scale in any case.

Where is the problem?

Sample on jsfiddle

Update:
I found some more information about this problem:

  1. StackOverflow question
  2. Bug ticket for Chrome (I tried my test under Safari/Chrome/IE9/10 and behaviour is the same.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:36:55+00:00Added an answer on June 9, 2026 at 3:36 pm

    For Chrome/Safari IE9/10 I have decided to use CSS zoom property instead scale property.

    .svg-button {
        zoom: 300%;
        background: url(Button.svg) no-repeat;
        width: 32px;
        height: 32px;
    }
    

    For Firefox I still use CSS scale property because Firefox doesn’t support zoom property. At the same time Firefox scales SVG background well. See result.

    For IE9 I have written javascript which temporary modifies CSS width property and after small delay returns it back. In this way I force redraw CSS background.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the scale() transform in SVG and d3. I understand it
I'm using an svg image as a background. I'm trying to use CSS3's background-size:
I want to Embed SVG into XUL. I tried to use the this tutorial
I don't have any experience with SVG but I was hoping to use this
I'm trying to make this SVG shape (ignore the color background, just the X
I would like to transform an element on a SVG canvas by a transformation
Can Firefox 3.5 use an SVG for a background image?
I'd like to use SVGs as scalable background images (e.g. a rounded rectangular as
I use the code below to have SVG embedded in HTML5. The only problem
I am using an SVG image on a page (via the CSS background-image property)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.