W3C home > Mailing lists > Public > www-style@w3.org > June 2012

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 7 Jun 2012 17:27:00 +1200
Message-ID: <CAOp6jLYj7v7L7UdufXbwgsioiDRAxpLYMBTfcKXjE6GOtrnSbQ@mail.gmail.com>
To: Thaddee Tyl <thaddee.tyl@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
On Tue, Jun 5, 2012 at 1:08 PM, Thaddee Tyl <thaddee.tyl@gmail.com> wrote:

> On Mon, May 28, 2012 at 7:56 AM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
> > On Mon, May 28, 2012 at 4:05 AM, Robert O'Callahan <robert@ocallahan.org>
> wrote:
>
>> > 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.
>
> This issue is similar to what happens to
> an element that gets scrolled into view inside an iframe.
>

I think it's actually quite different. Normally, for an element that got
broken into multiple CSS boxes, all the boxes will still have the same
"nearest scrollable ancestor". IFRAMEs don't change this. CSS Regions,
however, can change this so that the boxes might have different "nearest
scrollable ancestors".

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 Thursday, 7 June 2012 05:27:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT