On Apr 11, 2010, at 3:34 AM, Benct Philip Jonsson wrote:

> It's not clear to me what this means.  Which ones of
> the following statements will be true?
> 
> 1) A rule for :visited won't be used at all if
>    any disallowed property is used in it.
> 2) Disallowed properties can't at all be applied to
>    visited links.
> 3) Disallowed properties can be used for :visited, but
>    only if they share all their values with :link.
> 4) Disallowed properties can be applied to visited links,
>    but only by inheriting them from rules using a plain
>    "a" selector with no pseudo-selector(s).
> 5) Disallowed properties can be applied to visited links
>    by inheriting them from containing elements.

> I'd guess (4/5) are true and the others false, based on how
> plain "a", a:link and a:visited selectors interact at
> present.  If (3) is false many existing rules using
> "a:link, a:visited" selectors will break, but it's probably
> very hard to engineer things so that it's true without
> affecting loading times and hence safety.

To clarify: it is not necessarily that a property is disallowed; what will 
happen is is that a style change between a:link and a:visited will be ignored. 
To give an example:

a:link {border: 1px solid; color: blue;}
a:visited {border: 1px dashed; color: red;}

the change in border-style (from solid to dashed) will be ignored, 
border-style:solid will be used for a:visited.

I made a small test file with a couple of examples along the lines of the 
above. Included in the folder are 2 screenshots, the one labeled 'webkit' is 
taken with the latest nightly build of WebKit and is affected by these changes. 
The one labeled 'Gecko1.9.2' is taken with the current release of Firefox 3.6.3.
<http://dev.l-c-n.com/CSS2/visited/>
It is a work in progress. I may add more examples, depending on inspiration or 
the weather or …

> If (4/5) are false as well it has really come to bad times,
> since then color will be the only way to make links stand
> out!  I am of the links-and-only-links-should-be-underlined
> persuasion, but mostly because inverse video is already the
> best way to make (un)visited links stand out for those with
> color vision problems if you want to use font shapes for
> their traditional emphasis purposes, not to mention that
> font style changes rewrap the text.

Oh, but you still have lots of possibilities...
a:link {color: yellow; background: red;}
a:visited {color: red; background: yellow;}

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to