CSS.supports icon indicating copy to clipboard operation
CSS.supports copied to clipboard

CSS values with multiple parentheses

Open erikbrannstrom opened this issue 11 years ago • 0 comments

Hi!

I was going to use this polyfill to check support for different background gradients. It appears however that in Safari the following check returns false, even though it works fine: background: -webkit-radial-gradient(rgba(0,0,0,0.5), black)

When debugging I noticed that the expected property value that is actually checked is missing the last parenthesis (-webkit-radial-gradient(rgba(0,0,0,0.5), black) which of course is invalid.

I'm guessing the parser doesn't like when the value contains parentheses and therefore cuts off one character too soon.

erikbrannstrom avatar Jun 24 '14 12:06 erikbrannstrom