3 ms·
No, not easily. You can see that this is already the case in Firefox for Android, for instance, where you can't supply a user style sheet (the firefox profile
by magicalist 13y ago
No, not easily.
You can see that this is already the case in Firefox for Android, for instance, where you can't supply a user style sheet (the firefox profile is inaccessible to a user without root anyways). If you do want to provide user styles, Stylish is the featured (and almost universally recommended) extension for adding them. As you can see in the docs[1], though, anytime your !important rule comes up against an author's !important rule and you lose, the only workaround is to get more specific.
(it should be noted, though, that while CSS 2.1 does specify the cascade order with a "must", the user being able to specify styles in the first place is a "may", so Firefox for Android and Chrome for Android (which still doesn't support extensions) are spec compliant, they just make overriding styles more work and more fragile in the face of author changes)
[1] https://github.com/JasonBarnabe/stylish/wiki/Overwriting-page-styles#wiki-recommendations https://github.com/JasonBarnabe/stylish/wiki/Overwriting-pag...
- pcwalton 13y agoYeah, I guess what I'd like is an API for extensions like Stylish to use to add real user-level style sheets, in both Firefox and Chrome.