Re: URL CSS pseudo class

Hi, Charles,

On Feb 9, 2009, at 8:27 AM, Charles-André Landemaine wrote:
> 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,

The Web site http://userstyles.org/ along with the Stylish extension  
in Firefox seems to solve this problem. Wouldn't a better solution be  
for browsers support pinpointing specific user style?

Of, if this is for inclusion into the CSS specific, would the syntax  
used in Stylish be more appropriate:
@-moz-document domain(schuelervz.net) {}

Best,
Christopher Schmitt
http://www.christopherschmitt.com/
Web Design Specialist
Co-Lead, Adobe Task Force for The Web Standards Project
Digital Director, AIGA Cincinnati 

Received on Monday, 9 February 2009 15:42:31 UTC