Re: [css3-2d-transforms][css3-images] <position> grammar is duplicated or points to the wrong spec

On Feb 1, 2012, at 10:39 PM, Brian Manthos <brianman@microsoft.com> wrote:

> Brad:
>> More to the point would be something like
>>   calc(a + b, as percent)
>>   calc(a + b, as px)
>>   calc(a + b, as em) /* could make a difference when user resizes text
>> without zooming whole page */
> 
> Much more sane.  Yes.

Actually, come to think of it, even this would be useful for some layout work when lots of things in a chain of descendants are measured in ems, and it is hard to track what the current font-size would be in pixels, but you know you want a certain distance that changes with the font-size (for a text-shadow offset, perhaps):

calc(3px, as em)

Received on Thursday, 2 February 2012 06:54:07 UTC