W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: [css3-hyperlinks] inclusion of Clink in next WD

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 11 Mar 2004 10:49:30 -0500
Message-Id: <200403111549.i2BFnU87005564@no-knife.mit.edu>
To: "Anne van Kesteren (fora)" <fora@annevankesteren.nl>
Cc: www-style@w3.org

> >  :not(:link) { link: url(foo); }
> >
> >does trigger alarm bells)
> >
> I wonder why (probably because I don't know that much about how a UA 
> processes a style sheet).

Perhaps a slightly more extended example is in order:

Style:

description { color: red }
:link { color: green !important }

:not(:link) { link: url(ref); }

Markup:

<description ref="http://somewhere">Text</description>

What color is the text?  Why?  Does it make sense to have links that :link does
not match?

> It would select every element that currently isn't a link. Then it tries 
> to create a link using
> 
>  link:url(foo);
> 
> If attribute "foo" contains a valid URI, the link is created and the 
> selector doesn't apply anymore.

That would be violating a fundamental design constraint of CSS -- property
values cannot affect what rules apply to an element.

Boris
-- 
Once at a social gathering, Gladstone said to Disraeli,
"I predict, Sir, that you will die either by hanging or
of some vile disease".  Disraeli replied, "That all
depends upon whether I embrace your principles or your
mistress".
Received on Thursday, 11 March 2004 10:49:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:27 GMT