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

On Tue, Jan 24, 2012 at 5:30 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 01/24/2012 07:44 AM, Tab Atkins Jr. wrote:
>> "A math expression has a resolved type, which is one of ‘<length>’,
>> ‘<frequency>’, ‘<angle>’, ‘<time>’, or ‘<number>’. [...] If
>> percentages are accepted in the context in which the expression is
>> placed, a PERCENTAGE token has the type of the value that percentages
>> are relative to; otherwise, a math expression containing percentages
>> is invalid."
>
>
> The resolved type is only used to determine the validity of calc().
> It has nothing to do with how calc() is turned into a computed value.

If that's the case, then the spec is currently underdefining what is
actually returned.  In either case, Gecko's specific treatment of
%age+length in background-position is not defined in any way by
anything, and needs to be.

~TJ

Received on Wednesday, 25 January 2012 02:36:42 UTC