recent issues with live preview of UserCSS with invalid selectors #2183
Unanswered
sbeasley708
asked this question in
Q&A
Replies: 1 comment 2 replies
|
The workflow is not entirely clear to me, e.g. if you want to toggle the style while editing to see how the site looks without it you can use Alt-Enter hotkey in the editor, which has become customizable in the latest release. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I use Stylus to edit and live-preview my own user styles for Google Chrome.
Needing a quick way to disable styles when testing and debugging, I became partial to
[](empty attribute selector). While technically invalid, it's easy to type, supports nesting (unlike comments), guarantees no performance penalty against large and/or highly-dynamic DOMs (because it's invalid), seemed to work well enough even as a simple selector, and also seemed to have well-defined behavior within forgiving selector lists in W3C Selectors Level 4 (e.g. W3C acknowledges and Chrome affirms that[] yis invalid but that:is(x, [] y, z)still matchesxandz). This had been working fine for me....well, until two recent changes to Stylus:
"selector-no-invalid": null,to its JSON configuration.I'm curious if this is a known issue (I can't immediately find anything about it), whether it should be considered a defect in Stylus, and/or what I might do about it (aside from switching to
/**/and:not(*)and suchlike, or perhaps switching away from UserCSS).Cheers!
All reactions