W3C home > Mailing lists > Public > www-style@w3.org > February 2009

Re: URL CSS pseudo class

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Mon, 9 Feb 2009 16:33:44 +0100
Message-ID: <65307430902090733p4dc0f481re9b40e274b14a426@mail.gmail.com>
To: Charles-André Landemaine <landemaine@gmail.com>, www-style@w3.org
What about an extension to media queries like a "url:" param accepting an
url() functional notation or even a regexp?

This could allow for user style sheets to be grouped in @media rules or
conditionally @imported.

2009/2/9 Charles-André Landemaine <landemaine@gmail.com>

> Hello,
> A new CSS pseudo class to target a specific site would be really
> helpful, especially for user styles. I could imagine a stylesheet that
> uses some code like this one:
> head:url(google.com)>body{background:#cf0}
> We could allow regular expressions also to match URLs with or without
> the "www." prefix, "http" or "https", etc...
> e.g. head:urlmatch(/http:\/\/ad\./)>body{display:none}
> This would be easier to carry just one global user stylesheet instead
> of one user style sheet per site (ex. Opera, Firefox Stylish ext.).
> Thanks for your comprehension,
> Charles-André Landemaine.
Received on Monday, 9 February 2009 15:34:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:24 UTC