- From: Brad Kemper <brad.kemper@gmail.com>
- Date: Wed, 1 Feb 2012 22:53:36 -0800
- To: Brian Manthos <brianman@microsoft.com>
- Cc: Sylvain Galineau <sylvaing@microsoft.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>, fantasai <fantasai@inkedblade.net>
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