Skip to content

What is the difference between stylus and userContent.css? #1922

Closed Answered by tophf
flashgnash asked this question in Q&A
Discussion options

You must be logged in to vote

Stylus adds your code to the web page using AUTHOR position in the CSS cascade, whereas userContent.css is an internal mechanism of the browser apparently applied in the USER position in the CSS cascade, which is overridden by the web page, unless you add an explicit !important qualifier or use a hack to raise the specificity e.g. a:not(#\0) { ........ }.

In Stylus you can also use configurable variables.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flashgnash
Comment options

Answer selected by flashgnash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants