Re: canvas origin?

On 08/04/2011 22:16, Tab Atkins Jr. wrote:
> On Fri, Apr 8, 2011 at 1:09 PM, Sylvain Galineau<sylvaing@microsoft.com>  wrote:
>>
>> [Anton Prowse:]
>>>
>>> That was rather careless.  How about: ...if it had position:static and
>>> non-auto margin-left, in ltr mode; and in rtl mode it's the top-right
>>> corners and margin-right that we consider.
>>>
>>>> This should probably be made a little clearer in the spec.
>>>
>> I'm interested in understanding why the canvas origin needs to be defined
>> to change with direction. What properties depend on this switch ?
>
> If the ICB is wider than the viewport, the excess has to overflow the
> viewport in one direction or another.  You want it to overflow to the
> right in ltr, and to the left in rtl.

I think Tab meant to say that if the _root element's margin box_ is 
wider than the viewport, then you have to decide which side overflows 
the ICB and which doesn't.  But that's what I was getting at by 
distinguishing the two modes, yes.

Cheers,
Anton Prowse
http://dev.moonhenge.net

Received on Saturday, 9 April 2011 00:22:58 UTC