3 ms·
The vision of CSS included the notion of alternate stylesheets and some capability in browsers for the user to pick the stylesheet; as well as the notion of use
by niftich 9y ago
The vision of CSS included the notion of alternate stylesheets and some capability in browsers for the user to pick the stylesheet; as well as the notion of user styles which sometimes supplement, sometimes override the page author's style; all governed by the famous 'cascade' i.e. the resolution rules that determine which styles get applied [1][2].
Firefox (perhaps under its previous name, I can't remember) initially provided a statusbar-based UI to quickly switch styles, but it was removed [3] sometime in 2004. After that, browsers, if at all, only provided a bare minimum UI to switch stylesheets, usually though the application menu. Outside of hobbyist circles, page authors stopped providing alternate stylesheets. User-applied styles lived on in various ways: through addons, through alternate user-agents, but tends to be relegated to specific audiences or passionate fans of the capability; not a mainstream phenomenon.
EDIT: To experience this blast from the past, Mozilla has a sample page [4]. If the directions seem nonsensical, it's because the default browser UI now hides the menu bar [5], demonstrating just how obscure this option has become.
[1] https://www.w3.org/TR/CSS1/#the-cascade https://www.w3.org/TR/CSS1/#the-cascade
[2] https://www.w3.org/TR/CSS2/cascade.html#cascade https://www.w3.org/TR/CSS2/cascade.html#cascade
[3] http://forums.mozillazine.org/viewtopic.php?f=8&t=118119 http://forums.mozillazine.org/viewtopic.php?f=8&t=118119
[4] https://developer.mozilla.org/samples/cssref/altstyles/index.html https://developer.mozilla.org/samples/cssref/altstyles/index...
[5] https://support.mozilla.org/en-US/kb/what-happened-to-the-file-edit-and-view-menus#w_show-the-menu-bar-again https://support.mozilla.org/en-US/kb/what-happened-to-the-fi...
- taurath 9y agoAnd in all honesty one of the easiest things to do in css is color themes, but marketing/designers tend to want to stick you to one “brand” or the css is implemented in a poor way to be able to swap colors. I’d love a dark theme for the New York Times but I doubt they’ll ever apply it. Of course there’s all the edge cases with image based text which does pose a problem.. but I do wish designers would prioritize themes a lot more.
- flukus 9y agoOn the plus side, I think things like firefox reader mode are finally fulfilling this vision, just differently. Unlike custom css it's usable for average people too, it just needs more options like allowing web designers to turn it on by default, maybe some inline headers, etc. It's far from perfect but I consider it the first step in the right direction for 20 years.
- m3rc 9y agoFirefox's reader mode is incredibly useful and a vision of a much better future.
- irrational 9y ago>Firefox (perhaps under its previous name, I can't remember) Netscape Navigator? Phoenix?
- cup-of-tea 9y agoMy Firefox still has this... View > Page Style. It lists available stylesheets including none. Most websites are poorly designed and look like garbage with none.
- princekolt 9y agoSafari 11 still has this feature! Can you believe that?! I do indeed use a simple css file that sets a sans-serif font as the default (which I prefer). It's basically just this: html{font-family:'SFUIText-Regular',sans-serif;-webkit-text-size-adjust:100%}
- ComputerGuru 9y agoI wish the SF font family included a Georgia lookalike with modern optimizations. Sans serif can become a problem in a wall of text.