W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Making alternate stylesheets more useful + site selectors

From: Shropshire, Andrew A <shropshire@att.com>
Date: Thu, 20 Jan 2011 06:15:37 -0500
To: "'Felix Miata'" <mrmazda@earthlink.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <6BC169D8374E26408B536588741127981C841AD8@VNAX.gsi.grci.com>
Thanks everyone for all the replies.  Seems Mozilla has done site selectors, however, would like to see it in a standard so I don't have to worry about which browser end-users have or do the same thing 5 different ways.  The alternate style sheet mechanism is useful too, however it would seem the user has to select the alternate style sheet with every visit to the site.  Furthermore, the alternate stylesheet mechanism is only for one page not the entire website, so the number of use cases for it seems pretty small (with a website with 50 pages, the user is probably going to get frustrated changing to the alternate style sheet with every new page).   This is why I thought the user-style sheet is the way to go.  However I use a lot of CSS classes and IDs like 'ResultTable' and other common English words so I was afraid that if I told users to put the alternate style sheet into their user style sheet (to make it permanent) that there might be side effects with other websites (they might inadvertently use the same class names etc).  With the Mozilla site-selector mechanism, I could distribute these and not have to worry about side effects (but this only works for Firefox users). 

One idea is that when presented with an alternate stylesheet users have the option of adding it to their user stylesheet automatically (making the style permanent so that every visit to the website uses the alternate style).  This can be done safely with the site selector mechanism implemented by Mozilla.  



Regards,

Andrew Shropshire
AT&T Government Solutions, Inc. 
703-506-5708
 
This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. 


-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Felix Miata
Sent: Wednesday, January 19, 2011 4:50 PM
To: www-style@w3.org
Subject: Re: Add support for site-selectors

On 2011/01/19 14:13 (GMT-0500) Shropshire, Andrew A composed:

> It would be nice if CSS allowed for selectors to be precisely used
> depending on where the document came from.

> For example,  one may wish to have the selector

> .body { Background-color: purple !important; Color: white !important; }

> In a user style sheet.  However, the way say Firefox is setup now, this
> will be applied to every website.

Not true. Mozilla implemented site-specific styles in 2004.
https://bugzilla.mozilla.org/show_bug.cgi?id=238099
http://lists.w3.org/Archives/Public/www-style/2004Aug/0135.html

No extension/addon is required to utilize the feature.
-- 
"How much better to get wisdom than gold, to choose
understanding rather than silver." Proverbs 16:16 NKJV

  Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://fm.no-ip.com/
Received on Thursday, 20 January 2011 11:17:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:36 GMT