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

Re: CSS and structure

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 29 Jun 2004 09:29:12 -0700
Message-ID: <000f01c45df6$36235640$0201a8c0@ATHLON>
To: "Orion Adrian" <oadrian@hotmail.com>, <lachlan.hunt@lachy.id.au>
Cc: <www-style@w3.org>

Hi, Orion,

Your idea belongs to "object oriented " style.
My idea was in functional style.

selector1*
{
  display: inline;
}

selector2*
{
  display: block ( parameters-of-block-layout-function ) ;
}

example:
div
{
  display: block ( float:left; overflow:hidden ) ;
}

so later you can safely cascade/override display attribute and say
div
{
  display: inline;
}



Andrew Feoniouk.



>
> >>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;
> >>}
> >
> >   You cannot select an element based on a value of a CSS property, so
this
> >would not work.
> >
> >What would happen with this?
> >@block { display: inline; }
>
> well given that the display property has been rolled into a @ block, the
> following would be ignored. Pretty simple actually. Display would no
longer
> be a rule, but rather be an @ rule.
>
> Orion Adrian
>
>
Received on Tuesday, 29 June 2004 12:29:34 GMT

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