Hi Ceki,

Quoting Ceki G�lc� <[EMAIL PROTECTED]>:

> At 07:46 PM 9/10/2004, Jacob Kjome wrote:
>
> >If the defaults are clearly defined, then it is simple to override those
> >properties.
>
> That is simply not true. Let me give you an example:
>

I think we have a different idea of the definition of "simplicity" and how one
would normally use CSS.  Normally, default rules provide base minimum defaults
and are applied widely.  Customizing is generally done within the context (and
with knowledge) of the inherited CSS rules.

Keep in mind what I've said: If we define rules in a way that one has to
override each and every last one of them to get things looking their own way,
then we've written the rules poorly, in which case we'd want to make sure the
defaults are reasonable.

Either way, if one has knowledge of the defaults, one can always override them. 
In your case below, one could very well make a copy of that and modify/extend
as needed.  Again, the fact that one would need to do this means the defaults
were written poorly.  However, there is nothing complex here if you have half
an understanding of CSS.  Anyone that would bother to take the time to override
defaults would probably understand this anyway.  Otherwise, the idea is for the
defaults to be sane and general enough to stand on their own with only a need
to override, say..., colors or font.

If you disagree with this then you disagree with the CSS spec authors and I
won't continue an argument of this point.  We'll have to agree to disagree and
a decision will have to be made about who's point of view is going to work best
for the EnhancedHTMLAppender.  Obviously I think mine will work better, but the
final decision isn't up to me.  I leave it to you and the community.

Jake

> Assume that the following CSS rule is *embedded* in the output of
> EnhancedHTMLAppender. The embedded rules are what you would call the
> default rules.
>
> H1.someclass {
>    text-decoration: none;
>    font-family: Helvetica, sans-serif;
>    font-weight: bold;
>    background: #DDD;
>    color: #0066CC;
>    border: 3px solid green;
>    padding-left: 1em;
>    padding-right: 1em;
>    padding-top: 3px;
>    padding-bottom: 0px;
> }
>
> Let the user include a CSS file (with the intent of overriding the
> default rules). Let that CSS file contain the following rule:
>
>
> H1.someclass {
>    background: black;
>    color: white;
>    border-bottom: 1px solid red;
> }
>
> The actual applicable rule will be a combination of the embedded rule
> *and* the rule from the CSS file. If the embedded rule is mentioned
> before the CSS file, then the output will have a black back ground,
> white font and a red border-border but it will also rendered in bold,
> Helvetica font, with 3px green border at the top, left and right, in
> addition to the padding rules from the embedded CSS.
>
> CSS rules do not combine simply, far from it.
>
>
> --
> Ceki G�lc�
>
>       For log4j documentation consider "The complete log4j manual"
>       ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to