Re: [cssom-view] Origin of a canvas & scrollable element

On Fri, 03 Oct 2014 16:08:01 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> On Fri, Oct 3, 2014 at 8:07 AM, Simon Pieters <simonp@opera.com> wrote:
>> On Thu, 02 Oct 2014 22:42:41 +0200, Tab Atkins Jr.  
>> <jackalmage@gmail.com>
>> wrote:
>>>> How do you explain the element case?
>>>
>>>
>>> Same deal, isn't it?  The containing block generated by an element is
>>> based on the element's geometry, not its scrollable area.
>>
>>
>> So for http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3185  
>> the
>> spec says "the containing block is formed by the padding edge of the
>> ancestor." and so, in my understanding, the position:absolute element  
>> should
>> stay anchored to the element's padding edge when the element is  
>> scrolled,
>> since the padding edge doesn't move. Is that right?
>
> Ah, no, you want, like, the containing block, as projected into the
> scrollable area's coordinate space.

Hmm. OK. But the spec doesn't say that. Also nothing about what the scroll  
position should be when you do the projection.

-- 
Simon Pieters
Opera Software

Received on Thursday, 9 October 2014 08:47:47 UTC