Headless wrote:
Jim Dabell wrote:
[snip] The question then is; does <a> have a color/border-color that can be
inherited by descendant elements, and does it depend on what is being
hyperlinked?
On my reading of the spec:
It doesn't have a border (the initial value of border-style is none,
according to the spec).
Browsers typically include default styles that set the 'color' property,
although this isn't in the spec.
:link { color: blue; }
:visited { color: purple; }
:active { color: red; }
According to the spec, its children, unless they explicitly specify a value,
will inherit the value of the 'color' property.
Unless they explicitly specify a value, they will use the value of their
'color' property for border colours as well.
I can't think of any situation in any browser where this doesn't work like
this, or where the contents matter. Your Opera bug can be explained away
by not setting the border style. In every other visual browser I can think
of, a default border-style is set for elements that can be selected with
:link img, :visited img (and I thought Opera did this as well). There's no
need to suggest anything relating to borders for link elements, the 'color'
property inheritance does the work.
--
Jim Dabell