Skip to content

Parsing commas in properties #1

@acarnwath

Description

@acarnwath

I have a property in my stylesheet:

background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='650' height='650' viewBox='50 50 650 650'%3E%3Cpath fill='%23000' stroke='transparent' stroke-width='0' d='M171.3,62.2c-32.1-0.6-63.2,11.8-86.1,34.4C62,117.9,49,147.9,49.3,179.3v391.2 C49,602,62,632.1,85.3,653.4c22.9,22.6,53.9,35,86.1,34.4h225.8V445.4h-85v-94.5h85v-69.7c-2.2-34.2,10.4-67.7,34.6-92 c25.2-22.6,58.2-34.4,92.1-32.6c25.2-0.3,50.4,0.9,75.5,3.7v84.5l-51.7,0.4c-13.9-1.7-27.9,2.4-38.7,11.4 c-7.5,9.8-11.1,21.9-10.1,34.2V351h97.3l-13,94.5h-84.5V688h79.8c32.2,0.5,63.3-11.8,86.4-34.4c23.1-21.3,36-51.5,35.7-82.9V179.3 c0.3-31.4-12.6-61.6-35.7-82.9c-23.1-22.6-54.2-34.9-86.4-34.4H171.3V62.2z'/%3E%3C/svg%3E");

It is being falsely counted as selectors, due to the commas in the string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions