W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: [selectors] Self-referential link pseudo-class

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 7 May 2014 09:56:34 -0700
Message-ID: <CAAWBYDBWcRRTcgAOVNyFRC6erkhmOGg4cpaU_W=17q_4uxvvuQ@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: Antony Kennedy <antony@silversquid.com>, www-style list <www-style@w3.org>
On Wed, May 7, 2014 at 4:52 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> On 07/05/2014 12:46, Antony Kennedy wrote:
>>
>> Also, I’m not sure how one would target only the exact URL that you are
>> currently on (excluding hash, etc)?
>>
>> In my previous example:
>>
>>>>> <ul>
>>>>> <li><a href=“home.html“>Home</a></li>
>>>>> <li><a href=“about.html“>About us</a></li>
>>>>> </ul>
>>
>>
>> …when on home.html, how would style just that link?
>
>
> I believe that’s :local-link without parentheses.

Yup.

(And here's the set of things we've deferred:
http://dev.w3.org/csswg/selectors/deferred-for-level-5 )

~TJ
Received on Wednesday, 7 May 2014 16:57:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:26 UTC