Re: CSS and structure

>>>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.
>
>That makes absolutely no sense.  Please explain.

Let's make this simple.

div {
  display: block;
  margin: 1em;
}

would become

div {
  @block {
    margin: 1em;
  }
}

the idea being that the display rule could be replaced with at rules that 
would constrain the set of properties allowed under them.

But let's not get hung up on my example (it's bad anyway and misses a lot of 
points). What I'm saying is that the CSS grammar needs to be rethought 
because _the grammar_ is getting in the way of comprehension and 
memorization. The grammar itself is the problem. Though this does not deal 
the seething hatred I have for the CSS positioning properties.

Orion Adrian

Received on Tuesday, 29 June 2004 10:27:46 UTC