Expected Behavior
A declaration with a quoted url() that contains ) and ; should parse as a single declaration:
inlineStyleParser('background: url("a)b;c") no-repeat;');
// [{ property: 'background', value: 'url("a)b;c") no-repeat' }]
Actual Behavior
The parser throws property missing ':' at the column of the semicolon:
inlineStyleParser('background: url("a)b;c") no-repeat;');
// Error: undefined:1:23: property missing ':'
Steps to Reproduce
- Call
inlineStyleParser with a value that has a quoted URL containing ) before ;.
- The parser treats the
) inside the quoted string as the end of the url() function, then splits on the semicolon as if it were a declaration delimiter.
Minimal reproduction:
inlineStyleParser('background: url("a)b;c") no-repeat;');
See remarkablemark/style-to-object#112
Environment
Keywords
url, svg, data-url, semicolon, parenthesis, quoted string, declaration, background, animateTransform
Expected Behavior
A declaration with a quoted
url()that contains)and;should parse as a single declaration:Actual Behavior
The parser throws
property missing ':'at the column of the semicolon:Steps to Reproduce
inlineStyleParserwith a value that has a quoted URL containing)before;.)inside the quoted string as the end of theurl()function, then splits on the semicolon as if it were a declaration delimiter.Minimal reproduction:
See remarkablemark/style-to-object#112
Environment
0.2.7Keywords
url, svg, data-url, semicolon, parenthesis, quoted string, declaration, background, animateTransform