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

Add support for site-selectors

From: Shropshire, Andrew A <shropshire@att.com>
Date: Wed, 19 Jan 2011 14:13:19 -0500
To: "'www-style@w3.org'" <www-style@w3.org>
Message-ID: <6BC169D8374E26408B536588741127981C841AD4@VNAX.gsi.grci.com>
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

  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.  What if I want this applied to say a specific website only and not to every website?  Say www.yahoo.com<http://www.yahoo.com>.

What about:

URL(*.yahoo.com) .body
  Background-color: purple !important;
  Color: white !important;

Also if I wanted a whole section of the stylesheet to be applied to a specific website:

And every selector below that line would apply only to URLs for yahoo.com unless another


Were found, then all subsequent selectors would apply only to google.com

This would set things back to applying selectors to all websites.


Andrew Shropshire
AT&T Government Solutions, Inc.

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.
Received on Wednesday, 19 January 2011 19:13:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:53 UTC