W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: ECMAScript in CSS aka "Expressions"

From: Ryan Cannon <ryan@ryancannon.com>
Date: Tue, 15 Mar 2005 15:51:10 -0500
Message-ID: <42374ABE.4040101@ryancannon.com>
To: www-style@w3.org
Daniel Glazman wrote:

>
> Bert Bos wrote:
>
>> Not quite sure if this is what you mean, but the working group 
>> recently decided to investigate the implications of allowing simple, 
>> linear expressions as values. For example:
>>
>>     width: expr(50% + 5px);
>>     font-size: expr(2em / 3 + 2px);
>>     padding-right: expr(1px + 1ex - 5%);
>
> ...
>
> With my editor's implementor hat on, I can assure you that this is not
> going to make my life harder, but simpler. That's going to make 
> everyone's
> life simpler. Oh, well, not everyone ;-)
>
Based on problems in the current browsers with pixel rounding, we'd HAVE 
to also recommend how to round. The different ways of rounding 
expr(1.5em/3+10%) to a pixel integer could render this wonderful idea 
useless to designers.

-- 

Ryan Cannon
Instructional Technology
Web Design
RyanCannon.com <http://ryancannon.com/?refer=email>
(989) 463-7060
Received on Tuesday, 15 March 2005 21:11:11 GMT

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