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

Re: URL CSS pseudo class

From: Benjamin <benjo316@hotpop.com>
Date: Mon, 9 Feb 2009 11:42:24 -0600
Message-ID: <421e3c790902090942k7680aa3cj3e6bd406b41e679e@mail.gmail.com>
To: Jason CranfordTeague <jason@brighteyemedia.com>
Cc: Charles-André Landemaine <landemaine@gmail.com>, www-style@w3.org
I think this is what Charles-André is suggesting; as has been brought up
(syntax from Stylish):

/* if the current "domain" is 'foo': */
@-moz-document domain('foo') { /* apply these styles */
 a.link:visited {color: yellow;}

whether you use this syntax or that which you specify, you would have to use
a separate style for each url. However, the way Stylish handles it, you can
specify a domain the styles will be applied to all pages on that domain,
then you can specify a more specific url and have styles applied
specifically to them.

>From what I can tell, it appears the only real differences are syntax and
flexibility, but I could be wrong.

On Mon, Feb 9, 2009 at 10:46 AM, Jason CranfordTeague <
jason@brighteyemedia.com> wrote:

> I do not believe I am mistaken. While the technique you mention might work
> in a limited sense, it assumes that you then create a style for all possible
> URLs rather than a single style for the currently displayed URL. The current
> pseudo class could be applied without having to specify the URL. In the case
> of what Charles-André is suggestion, I'm wondering if we might want to
> consider something where if a specific URL is the current URL displayed in
> the agent, then a particular style is applied.*
> *
> *
> * jason@brighteyemediacom |  www.brighteyemedia.com
Received on Monday, 9 February 2009 17:43:00 UTC

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