W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: Domain selectors

From: Henrik Andersson <henke@henke37.cjb.net>
Date: Sat, 07 Mar 2015 21:06:01 +0100
Message-ID: <54FB5A29.3070101@henke37.cjb.net>
To: Jens Oliver Meiert <jens@meiert.com>, W3C WWW Style <www-style@w3.org>
Jens Oliver Meiert skrev:
> Quick and dirty.
>
> I grow fond of the utility of something like a domain (more precisely:
> hostname) selector:
>
>   [host='example.com'] html { color: red }
>
> The syntax would follow that of attribute selectors (as well as RFC 3986).
>
> The only constraint would be that the domain selector would need to be
> followed by another selector (as with “html” in example).
>
> The use cases:
>
> 1) More effective—or rather finally manageable—handling of
> multi-domain/subdomain sites (as with easier “skinning”).
>
> 2) More robust user style sheets (as in reasonably limiting the scope
> of possibly overly aggressive selectors).
>
> I’m not aware of any existing work here and, glossing over the idea,
> it seems to be of value.
>
> What would talk us out of this?
>
This is quite needed for user level stylesheets.
Received on Saturday, 7 March 2015 20:06:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC