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

Re: URL CSS pseudo class

From: Christopher Schmitt <schmitt@christopher.org>
Date: Mon, 9 Feb 2009 10:41:50 -0500
Cc: www-style@w3.org
Message-Id: <FDBE3BB7-F89F-4B5C-B3DD-AD99880CD4D5@christopher.org>
To: Charles-André Landemaine <landemaine@gmail.com>

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) {}

Christopher Schmitt
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

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