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

Trying to write a rule with :nth-child crashes tab after writing opening parenthesis #249

Closed
DanielSmedegaardBuus opened this issue Jun 28, 2013 · 3 comments
Labels
bug Bug report

Comments

@DanielSmedegaardBuus
Copy link

Pretty much what the title says :)

To reproduce, open any page, say google.com. Then open Stylebot, go to Edit CSS, and then write any selector with an nth-child in it, such as
div:nth-child(
That's how far you get. The tab then freezes, and after a bit, you get "It's dead, Jim".

Cheers,
Daniel

@DanielSmedegaardBuus
Copy link
Author

Same behavior with :not(, probably others.

@ankit ankit closed this as completed in bbab063 Jul 11, 2013
@JiRybar
Copy link

JiRybar commented Apr 13, 2017

This bug still persists.

@flatline-studios
Copy link

flatline-studios commented Apr 21, 2019

Still here... As a workaround, you can either uncheck the "Live Preview Changes" checkbox while you write the nth() or not() bit of the selector, or copy and paste the selector in in full... Like:

.ms-Fabric > div:nth-of-type(2) > div > div:first-of-type > div:last-of-type { display: none; }

Then it will still work as expected.

There's likely an OnChange() event firing in the editor textbox that's getting caught in a recursive loop, and eventually OOMing the tab. I don't have the time to analyze the problem and submit a PR to fix it though unfortunately.

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

No branches or pull requests

3 participants