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

Re: What is missing in CSS?

From: <Slalomsk8er@solnet.ch>
Date: Mon, 06 Dec 2004 15:16:06 +0100
To: www-style@w3.org
Message-ID: <41B477B6.17674.97F8627@localhost>

> Slalomsk8er@solnet.ch wrote:
>> Some constants and variables, like window content size.
> This has been discussed before, it will probably never happen.

This is sad, It is often sayed how mighty CSS is, as a programmer I 
realy question such statements. Securety vs. might is sure a thing to 
think of but full might over the presentation would not compromise 
securety IMHO.

>> Calculations, some thing like width: 1% + 18px;

> This has been discussed before and it might be addressed in CSS3 > 
with a 'calc' value.

I think this is good news, thanks.

>> Conditions, like if it has a border of 2px.

> Not sure about this one, though it looks a bit tricky.

Look at the example code, this is a realy old concept in programming 
(if (x > 0) => do foo; else => do bar).
But it makes no sense with out constants and variables.

	.foo {
		if(.foo.border-width != 0) /* !=  is the not equal operator */ 
			{ width: view-width / 2 - .foo.border-width * 2; }
		else
			{ width: view-width / 2; }
	}

>> IMHO this will make me use the ugly hacks just for older Browsers, 
>> especially the calculations would make the workflow much faster.

> If it's introduced, you will need to "hack" for every existing
> browser, since none will support it.

Yes, They will be the older Browsers then.
Some clever masking for new and old browsers would be good, I realy 
start to hate all the browser hacks.
Do the browsers ignor statements they do not understand, if so the 
masking is just needed for new browsers to hide the old browser code?


Thanks, Dominik Riva
Received on Monday, 6 December 2004 14:07:36 GMT

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