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

> >  :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 UTC