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

David:
> I think calc() should not have any discontinuities, i.e., putting
> "calc()" around a valid value shouldn't change its behavior, and

Tab:
> You're ignoring the first discontinuity that David talks about, which
> is about wrapping a percentage in a calc().

That's not a discontinuity in calc.  It's a discontinuity in background-position.

Brian:
> http://dev.w3.org/csswg/css3-values/#calc

> [1]# It can be used wherever <length>, <frequency>,
>         <angle>, <time>, or <number> values are allowed.
> [2]# A math expression has a resolved type, which is one of
>         ‘<length>’, ‘<frequency>’, ‘<angle>’, ‘<time>’, or ‘<number>’.
> [3]# The resolved type must be valid for where the expression
>         is placed; otherwise, the expression is invalid.

Again, if you want to change calc (function) in Values (module) in a rational way your best bet is to define a new <token-type> and add it to [1] and [2] accordingly.  You then need to make use of that token type in background-position's grammar and rendering specification.

This is exactly what I proposed earlier.

Received on Tuesday, 24 January 2012 19:37:03 UTC