"weston" <notsew-reversePreceedingAndRemoveThis@canncentral.org> writes:
[color=blue]
> The only really good reason I can think of for separating
> the two is if there would be some kind of mismatch or collision
> between computed/applied styles and inline styles. Is there
> a case where this happens?[/color]
Several.
If the inline style is, e.g., "margin-left: auto", the computed style
will have a margin-left that is the actual pixel count that the
computation yields.
Likewise, a relative size like "font-size:120%", will be computed to a
fixed font-size based on the inherited value that 120% is relative to.
If a style higher in the cascade has a rule like:
body { font-size: 1em !important; }
and the inline style is
<body style="font-size:80%">
then the computed style will have a font-size of 100% (actual example,
I have that rule in my user stylesheet, and too many pages to count
tries to make the body font smaller).
/L
--
Lasse Reichstein Nielsen -
lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'