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

Re: CSS: %% length unit. Proposal.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 8 May 2004 17:45:06 -0700
Message-ID: <005201c4355e$e114c810$0301a8c0@ATHLON>
To: <fora@annevankesteren.nl>
Cc: "Max Romantschuk" <max@provico.fi>, <www-style@w3.org>

>  f1{
>   width:calc(25%-50px);
>  }
>  f2{
>   width:calc(75%-50px);
>  }
>

What is the order of operations in such expression?
What part of it shall be made first:

var v = contentWidth;
  1) v = (v * 25) / 100;
  2) v = v - 50px;

-or-

  1) v = v - 50px;
  2) v = (v * 25) / 100;

Obviously result will be different in both cases.

And don't even try to explain to human what does this mean: width: (50% +
10px)*2 + 20em.
This is not a math, it is just a pray: "I very, very want this div to appear
somewhere here".

> The problem with your proposal is that is it totally unclear what should
happen,
> just look at Dave Hyatt responses.'

Which one of his responses?

Andrew Fedoniouk.
http://terrainformatica.com
Received on Saturday, 8 May 2004 20:43:46 GMT

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