Skip to content

CSS values with multiple parentheses #2

@erikbrannstrom

Description

@erikbrannstrom

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.

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