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

Poor performance of a particular example on ie 6 #95

Closed
marekdedic opened this issue Sep 30, 2018 · 3 comments · Fixed by #105
Closed

Poor performance of a particular example on ie 6 #95

marekdedic opened this issue Sep 30, 2018 · 3 comments · Fixed by #105

Comments

@marekdedic
Copy link
Contributor

Hi I get very poor performance for elements with :focus:hover when checking them against ie 6.
Example:

$ time doiuse --browsers "ie 6" example.css
example.css:1:1: CSS 2.1 selectors not supported by: IE (6) (css-sel2)
doiuse --browsers "ie 6" example.css  59,04s user 0,06s system 100% cpu 59,014 total

where example.css is:

.imagelightbox-arrow:focus:hover {
}

I've found that changing the name of the class sometimes resolves the issue, as does removing either the hover or the focus. From what I can tell, the content of the class has no effect.

I am using version 4.2.0

@marekdedic
Copy link
Contributor Author

I tried profiling the problem and 99% of the time is spent in
RegExp: ^((\[[^\]]*\]|\([^\)]*\))?[^\[\]\(\)]*)*\.

@marekdedic
Copy link
Contributor Author

processed.txt

@marekdedic
Copy link
Contributor Author

See here - catastrophic backtracking:
https://regex101.com/r/MlbAhW/1

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

Successfully merging a pull request may close this issue.

1 participant