{"id":18389561,"url":"https://github.com/anseki/polyfill-svg-bg","last_synced_at":"2025-04-12T06:29:48.665Z","repository":{"id":57327034,"uuid":"44138093","full_name":"anseki/polyfill-svg-bg","owner":"anseki","description":"Polyfill for IE to set SVG to CSS `background-image`.","archived":false,"fork":false,"pushed_at":"2017-03-03T08:57:07.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T02:07:34.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anseki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-12T22:39:32.000Z","updated_at":"2020-03-18T11:44:16.000Z","dependencies_parsed_at":"2022-09-13T19:21:50.485Z","dependency_job_id":null,"html_url":"https://github.com/anseki/polyfill-svg-bg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fpolyfill-svg-bg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fpolyfill-svg-bg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fpolyfill-svg-bg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fpolyfill-svg-bg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anseki","download_url":"https://codeload.github.com/anseki/polyfill-svg-bg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248528719,"owners_count":21119362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T01:43:44.478Z","updated_at":"2025-04-12T06:29:48.643Z","avatar_url":"https://github.com/anseki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polyfill SVG as BG for IE\n\n***Use [polyfillSvgUri](https://github.com/anseki/polyfill-svg-uri) instead of this.***\n\n**This project was altered to [polyfillSvgUri](https://github.com/anseki/polyfill-svg-uri).**\n\n---\n\nPolyfill for IE to set SVG to CSS `background-image`.\n\nThe plain SVG without Base64 encoding that is written in the CSS `background-image` is small size, readable and editable.\n\n```css\ndiv {\n  background: url('data:image/svg+xml;utf8,\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"96\" height=\"96\"\u003e\u003cpath d=\"M10,10L32,90L90,32z\" fill=\"lightgreen\"/\u003e\u003c/svg\u003e') center no-repeat;\n}\n```\n\nBut IE ignores it.  \nThis polyfill solves that problem. It passes encoded SVG to IE.\n\n## Usage\n\n```html\n\u003cscript src=\"polyfill-svg-bg.min.js\"\u003e\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fpolyfill-svg-bg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanseki%2Fpolyfill-svg-bg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fpolyfill-svg-bg/lists"}