Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring value containing colon #43

Closed
AndreasNasman opened this issue Dec 7, 2021 · 3 comments
Closed

Ignoring value containing colon #43

AndreasNasman opened this issue Dec 7, 2021 · 3 comments
Labels

Comments

@AndreasNasman
Copy link

Hi!

I'm trying to use ignoreValue to suppress a parsing error:

Can't parse value "alpha( opacity: 0 )"

The CSS property looks like this:

.class {
    filter: alpha( opacity: 0 );
}

I've tried combinations like

'ignoreValue': 'alpha'
'ignoreValue': 'alpha.*'
'ignoreValue': 'alpha\\(.*\\)'

to ignore the value, but can't seem to get the syntax right. Any advice on the correct syntax to ignore the filter: alpha( opacity: 0 ); property?

Thanks
– Andreas

@AndreasNasman
Copy link
Author

Another similar one is

.class {
    filter: progid:dximagetransform.microsoft.gradient( startColorstr='#e80008', endColorstr='#a6002c', GradientType=0 ); 
}

It seems to be the colons in the properties that cause trouble. 🤔

@lahmatiy
Copy link
Member

lahmatiy commented Dec 7, 2021

Looks like ignoreValue applies for matching errors only, not for parse errors. That's a bug, going to fix it.

@lahmatiy lahmatiy added the bug label Dec 7, 2021
@AndreasNasman
Copy link
Author

Thanks for the fix, works perfectly! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants