Re: [CSSOM-view] Support centering an element when scrolling into view.

On Mon, May 28, 2012 at 4:05 AM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Sat, May 26, 2012 at 5:12 PM, Thaddee Tyl <thaddee.tyl@gmail.com> wrote:
>> >> Also, don't forget to specify exactly what the area that is scrolled
>> >> into
>> >> view is. Currently CSSOM View refers to "the border box of the
>> >> element",
>> >> which is of course ill-defined since there can be zero or more
>> >> border-boxes
>> >> for the element.
>>
>> Should I redefine "the border box of the element"? I am afraid that would
>> be
>> hard to do.
>
> "The border-box of the element" is simply meaningless. You can't use that
> phrase in a spec.

Well, you can in some circumstances.  ^_^

What you need to, Thaddee, is figure out what browsers do when, for
example, an inline is broken around a large float, or a block is
broken across multicol columns.  The usual answers are that they
either care about (1) the (border) box of the first fragment, or (2)
the bounding box containing all the fragments.

~TJ

Received on Monday, 28 May 2012 14:57:45 UTC