W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [selectors4] Requested selectors

From: Philippe Wittenbergh <ph.wittenbergh@l-c-n.com>
Date: Fri, 31 Aug 2012 10:18:35 +0900
Cc: "Belov, Charles" <Charles.Belov@sfmta.com>
Message-Id: <D0DDD811-829F-405D-8622-D3F38D102C64@l-c-n.com>
To: www-style@w3.org

Le 31 août 2012 à 09:02, "Belov, Charles" <Charles.Belov@sfmta.com> a écrit :

> Domain and protocol as selector, e.g.
> 
> http://sfmta.com html {
> }
> 
> https://sfmta.com html {
> }
> 
> Or just
> 
> sfmta.com html {
> }
> 
> sfmuni.com html {
> }
> 
> Although this would probably be most useful in personal style sheets.

Isn't that covered by the @document at-rule ?

e.g 
@document domain(sfmta.com) {
	html { background: lime; color: white; }
}

http://dev.w3.org/csswg/css3-conditional/#at-document

Philippe
--
Philippe Wittenbergh
http://l-c-n.com
Received on Friday, 31 August 2012 01:19:01 GMT

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