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

Re: URL CSS pseudo class

From: Charles-André Landemaine <landemaine@gmail.com>
Date: Mon, 9 Feb 2009 17:09:55 +0100
Message-ID: <e6575a30902090809v4272e1ft9751a80f7e269b55@mail.gmail.com>
To: Christopher Schmitt <schmitt@christopher.org>
Cc: www-style@w3.org

On Mon, Feb 9, 2009 at 4:52 PM, Christopher Schmitt
<schmitt@christopher.org> wrote:
> I understand, but I raise two questions:
> 1) Shouldn't this be for browsers vendors to implement on their own? For
> example, Opera apparently has a solution (see
> http://userstyles.org/styles/installing )

Firefox has already, but if we let browser vendors go further, all of
them will have their own synthax, and sharing user styles will be
painful, having to maintain various versions for different browsers.

Actually Opera doesn't have a real solution. You can only resort to
user scripts to implement user styles with the possibility to filter
by domain name. The only way I know is this:

	var style = document.createElement("style");
	var sheet = style.sheet;

> 2) Wouldn't the Mozilla Firefox syntax be better suited, if this was to be
> included in the CSS specification, than the one you suggested?

I like my synthax, it looks like old-school pseudo classes
(http://www.w3.org/TR/css3-selectors/#selectors), it's simple to
understand and to remember. If we go the FF-synthax route, we would at
least have to remove the -moz prefix (that can be considered

Charles-André Landemaine.
Received on Monday, 9 February 2009 16:10:30 UTC

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