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: Brian Manthos <brianman@microsoft.com>
Date: Wed, 1 Feb 2012 20:56:41 +0000
To: Brad Kemper <brad.kemper@gmail.com>, Sylvain Galineau <sylvaing@microsoft.com>, Tab Atkins Jr. <jackalmage@gmail.com>
CC: "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>, fantasai <fantasai@inkedblade.net>
Message-ID: <9710FCC2E88860489239BE0308AC5D170EB30839@TK5EX14MBXC264.redmond.corp.microsoft.com>
> background-position: calc(50% + 2px);
>then it would resolve to:
> background-position: 51%; /* which is 102px */
>
>But if you had this:
>
>background-position: calc(2px + 50%);
>then it would resolve to this: 
>background-position: 102px;

Specifying calc resolution such that it doesn't respect commutativity would be awful.

If you really want to make...
	calc(a + b) != calc(b + a)
then it shouldn't be expressed this way.

You need something more like
	calc(a, b)
or
	calc(directionally-sensitive-addition, a, b)
Received on Wednesday, 1 February 2012 20:57:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT