Re: CSSOM: getClientRects for table with caption

On Tue, Oct 13, 2009 at 02:10, Robert O'Callahan <> 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.



Received on Tuesday, 13 October 2009 17:05:43 UTC