Re: CSS: %% length unit. Proposal.

>  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 UTC