W3C home > Mailing lists > Public > www-style@w3.org > February 2012

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 1 Feb 2012 22:53:36 -0800
Message-Id: <81279A48-82EB-4F38-81E3-8326438120EE@gmail.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>
To: Brian Manthos <brianman@microsoft.com>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:11 UTC