W3C home > Mailing lists > Public > www-style@w3.org > June 2004

RE: CSS and structure

From: Orion Adrian <oadrian@hotmail.com>
Date: Tue, 29 Jun 2004 09:34:28 -0400
To: www-style@w3.org
Message-ID: <BAY1-F8Uzmrtlx3XZMI0000f8dd@hotmail.com>

>CSS is not a programming language, nor will it ever be. CSS requires 
>pattern-based thinking as opposed to traditional procedural programming, 
>but this is desired. The same applies for XSLT.
>

I never said it was procedural. Both CSS and XSLT are functional programming 
languages. They're still programming languages. You might call them markup 
languages, but the inclusion of the word programming here is only semantic.

>Introducing more structure would only serve to complicate the language. 
>When need be to have more elaborate syntax using a preprocessor is a good 
>idea. CSS should not be laiden with syntactic sugar more than is absolutely 
>necessary.

I agree with keeping a simple syntax, however I also state that addng 
structure to the functional rules can only help with the ability to remember 
and comprehend. I'm not suggesting that CSS needs major reform in this area, 
but it does need reform.

Perhaps another structure would be (right off the top of my head):

selector* {
  @block {
      rule-that-only-applies-to-block-elements: value;
      rule-that-only-applies-to-block-elements: value;
   }
   rule-that-applies-to-any-element: value;
}

Orion Adrian
Received on Tuesday, 29 June 2004 09:34:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:30 GMT