Thus user-written rules would overwrite site-written rules in every case. Given this basic fact, I propose that Stylish give automatic priority to user styles, as though an additional, overriding layer of specificity were granted by virtue of being applied by Stylish. This competition can lead to confusion, frustration, artificially lengthy and inelegant CSS code, and superfluous problem reports. This is why Greasemonkey (on which Stylish is conceptually based) users' code is not usually required to compete on an equal footing with production code, while Stylish users' output always does. This is fundamentally different from the situation with JavaScript, where scripts do not compete for the right to do any particular thing. CSS allows stylesheets (and declarations within the same sheet) to compete for the right to assign that value. Each attribute of an HTML element can only have one value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |