Re: ECMAScript in CSS aka "Expressions"

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 UTC