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

On Mon, Jan 23, 2012 at 11:49 AM, Brian Manthos <brianman@microsoft.com> wrote:>
> From: L. David Baron [mailto:dbaron@dbaron.org]
>> On Monday 2012-01-23 19:28 +0000, Brian Manthos wrote:
>>> I find this proposed behavior bizarre, personally.  I'm not sure I would fight against it yet (because I need to consider it some more), but on the surface it's very counterintuitive to me.
>>>
>>> For the example
>>>       Width: 200px;
>>>       Height: 400px;
>>>       Background-position: calc(100% - 5px) calc(100% - 10px);
>>>       Background-repeat: no-repeat;
>>>
>>> As I understand it, the computed value for background-position is something like
>>>       195px 390px
>>
>> No, the computed value for background-position has both percentages
>> and lengths in it, just as it does today.
>
> I was talking about "as it does today".   It's unclear to me from your answer whether you're agreeing with me (as Tab seems to have been in his reply) or not.  Can you please elaborate?

Both.  David is correct that the computed value of bg-position
maintains percentages without converting them to lengths.  It is also
true that, given the current state of the calc() spec,
"background-position: 75%;" and "background-position: calc(75%);"
produce two very different positions.

~TJ

Received on Monday, 23 January 2012 19:53:05 UTC