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

What is missing in CSS?

From: <Slalomsk8er@solnet.ch>
Date: Mon, 06 Dec 2004 13:03:00 +0100
To: www-style@w3.org
Message-ID: <41B45884.6949.905A970@localhost>

Hallo,

I miss some things in CSS.

For example:

	Some constants and variables, like window content size.

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

	Conditions, like if it has a border of 2px.
	
	/* This code would make the class foo half of the page size  
	if it has a border or not */ 

	.foo {
		if (.foo.border-width) {
			width: view-width / 2 - .foo.border-width * 2;
		}
		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.

What do you people think of this?

Thanks, Dominik Riva
Received on Monday, 6 December 2004 12:58:05 GMT

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