- From: Benjamin <benjo316@hotpop.com>
- Date: Mon, 9 Feb 2009 11:58:54 -0600
- To: Jason CranfordTeague <jason@brighteyemedia.com>
- Cc: Charles-André Landemaine <landemaine@gmail.com>, www-style@w3.org
- Message-ID: <421e3c790902090958i660ffc0ek1830532f6bbcc9cd@mail.gmail.com>
First, I'd like to apologize for the quick reply, and for what I believe to be my mistake. If I am understanding you correctly, you are proposing a pseudo class which would apply to a link if its url is the same as the document's. Thereby enabling the ability to style a link which goes to the same page the link resides in. Indeed, this would be similar to what Charles-André is proposing, but impossible to implement (your proposal) using that syntax. As an example, look at the navigation links on the right side of my website ( http://bblanco.homelinux.net/), where the links leading to the current page are disabled. If I'm interpreting your proposal correctly, this pseudo class would do something similar, but change only the style. On Mon, Feb 9, 2009 at 11:42 AM, Benjamin <benjo316@hotpop.com> wrote: > > 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 CRANFORD TEAGUE* >> * jason@brighteyemediacom |  www.brighteyemedia.com >> > >
Received on Monday, 9 February 2009 17:59:38 UTC