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

background-image: url(svg) is not compress correctly #344

Open
hopana opened this issue Jun 27, 2022 · 0 comments
Open

background-image: url(svg) is not compress correctly #344

hopana opened this issue Jun 27, 2022 · 0 comments

Comments

@hopana
Copy link

hopana commented Jun 27, 2022

input

background-image: url('data:image/svg+xml;utf-8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 5C5.73478 5 5.48043 5.10536 5.29289 5.29289C5.10536 5.48043 5 5.73478 5 6V20C5 20.2652 5.10536 20.5196 5.29289 20.7071C5.48043 20.8946 5.73478 21 6 21H18C18.2652 21 18.5196 20.8946 18.7071 20.7071C18.8946 20.5196 19 20.2652 19 20V6C19 5.73478 18.8946 5.48043 18.7071 5.29289C18.5196 5.10536 18.2652 5 18 5H16C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3H18C18.7956 3 19.5587 3.31607 20.1213 3.87868C20.6839 4.44129 21 5.20435 21 6V20C21 20.7957 20.6839 21.5587 20.1213 22.1213C19.5587 22.6839 18.7957 23 18 23H6C5.20435 23 4.44129 22.6839 3.87868 22.1213C3.31607 21.5587 3 20.7957 3 20V6C3 5.20435 3.31607 4.44129 3.87868 3.87868C4.44129 3.31607 5.20435 3 6 3H8C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5H6Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3C7 1.89543 7.89543 1 9 1H15C16.1046 1 17 1.89543 17 3V5C17 6.10457 16.1046 7 15 7H9C7.89543 7 7 6.10457 7 5V3ZM15 3H9V5H15V3Z" fill="white"/></svg>')

output

background-image:url('data:image/svg+xml;utf-8,<svgwidth="16"height="16"viewBox="002424"fill="none"xmlns="http://www.w3.org/2000/svg"><pathfill-rule="evenodd"clip-rule="evenodd"d="M65C5.7347855.480435.105365.292895.29289C5.105365.4804355.7347856V20C520.26525.1053620.51965.2928920.7071C5.4804320.89465.7347821621H18C18.26522118.519620.894618.707120.7071C18.894620.51961920.26521920V6C195.7347818.89465.4804318.70715.29289C18.51965.1053618.26525185H16C15.44775154.55228154C153.4477215.44773163H18C18.7956319.55873.3160720.12133.87868C20.68394.44129215.20435216V20C2120.795720.683921.558720.121322.1213C19.558722.683918.7957231823H6C5.20435234.4412922.68393.8786822.1213C3.3160721.5587320.7957320V6C35.204353.316074.441293.878683.87868C4.441293.316075.20435363H8C8.55228393.4477294C94.552288.55228585H6Z"fill="white"/><pathfill-rule="evenodd"clip-rule="evenodd"d="M73C71.895437.89543191H15C16.10461171.89543173V5C176.1045716.10467157H9C7.89543776.1045775V3ZM153H9V5H15V3Z"fill="white"/></svg>')}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant