W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Re: CSSOM: getClientRects for table with caption

From: Erik Arvidsson <arv@chromium.org>
Date: Tue, 13 Oct 2009 10:04:50 -0700
Message-ID: <34df39070910131004x4496102aueb3b273d28c8e582@mail.gmail.com>
To: robert@ocallahan.org
Cc: Anne van Kesteren <annevk@opera.com>, www-style@w3.org
On Tue, Oct 13, 2009 at 02:10, Robert O'Callahan <robert@ocallahan.org> wrote:
> Erik didn't say which rect the other browsers return, but it seems to be the
> anonymous container box that contains the table box and the caption box, in
> Webkit and Opera at least. That's inconsistent with the behaviour for
> anonymous block boxes, where we drill down to return the non-anonymous
> descendants. And as you observe, it is also less useful since there is then
> no way to obtain the table box.

Other browsers return the anonymous container box.

> For what it's worth, it would have been a few fewer lines of code for us to
> return the anonymous container box, but I suggested and implemented the
> spec's behaviour because it seemed better.

I brought this up because WebKit uses the Mozilla tests and of course
they fail for us. I wanted to know more about the reasoning behind
this before I go and fix WebKit.

> I'm not aware of any Web compatibility issues here; a cursory search doesn't
> reveal any bugs about it in our bug database.

Thanks

-- 
erik
Received on Tuesday, 13 October 2009 17:05:43 GMT

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