[attribution restored]
Christoph Päper <christoph.paeper@nurfuerspam.de> wrote:[color=blue][color=green]
>> Another unresolved issue is the cascade, it's too easy to have a
>> variable overwritten badly later on.[/color][/color]
Axel Dahmen <NO_SPAM@NoOneKnows.invalid> wrote:[color=blue]
> My suggestion is not about variables but on using currently computed values
> instead of constants. This should render this issue solved. -- No
> programming. More or less it's as simple as just using run-time instead of
> design-time.[/color]
You seem to have missed the issue of the cascade.
What happens when you cascade the author style sheet
body { color : black ; background : white ; }
h1 { color : silver ; background : >body.color ; }
with the user style sheet
body { color : white !important ; background : black !important ; }
? The H1 element is displayed silver-on-white, which isn't very legible.
That's why style sheets should specify an explicit color (not "inherit" and
not "transparent" and not a runtime value like you're suggesting) and an
explicit background (not "inherit", etc.) together.
[color=blue][color=green]
>> So if you are, as you wrote, *programming* your stylesheets, you can
>> easily do what you want with that programming language.[/color]
>
> The feature request is not about programming, I'm just using current values
> instead of constants. This would render creating style sheets far more easy.
> E.g. you would not have to amend each and every element you assigned some
> corporate colour to, when this corporate colour is changed by the design
> department.[/color]
I use the same preprocessor to generate my CSS as I use to generate my
HTML. I define the color scheme once, and then the preprocessor inserts the
specified colors where necessary. If I change the color scheme, then I
change it once, and the preprocessor handles the rest.
That's the advantage of using a programming language, rather than trying to
convert CSS into a programming language.
--
Darin McGrew,
mcgrew@stanfordalumni.org,
http://www.rahul.net/mcgrew/
Web Design Group,
darin@htmlhelp.com,
http://www.HTMLHelp.com/
"Timing has a lot to do with the outcome of a rain dance."