An open API service indexing awesome lists of open source software.

https://github.com/anseki/polyfill-svg-bg

Polyfill for IE to set SVG to CSS `background-image`.
https://github.com/anseki/polyfill-svg-bg

Last synced: over 1 year ago
JSON representation

Polyfill for IE to set SVG to CSS `background-image`.

Awesome Lists containing this project

README

          

# Polyfill SVG as BG for IE

***Use [polyfillSvgUri](https://github.com/anseki/polyfill-svg-uri) instead of this.***

**This project was altered to [polyfillSvgUri](https://github.com/anseki/polyfill-svg-uri).**

---

Polyfill for IE to set SVG to CSS `background-image`.

The plain SVG without Base64 encoding that is written in the CSS `background-image` is small size, readable and editable.

```css
div {
background: url('data:image/svg+xml;utf8,') center no-repeat;
}
```

But IE ignores it.
This polyfill solves that problem. It passes encoded SVG to IE.

## Usage

```html

```