CSS.supports
CSS.supports copied to clipboard
CSS values with multiple parentheses
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.