Re: URL CSS pseudo class

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.

Giovanni
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