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

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.

> Also, I believe with CSS Regions it's possible to have an element which
> has
> > some boxes in one scrollable container and other boxes in a different
> > scrollable container. I'm not sure what should happen in that case.
>
> While I have no idea how it should work, I believe that this may not be
> too important right now.
>

If it's not specified now, then different engines will do different random
things and it'll be much harder to fix later.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]

Received on Monday, 28 May 2012 11:06:31 UTC