Re: [cssom-view] small update

On Mon, Mar 10, 2008 at 3:42 AM, Anne van Kesteren <annevk@opera.com> wrote:

> On Thu, 06 Mar 2008 13:59:53 +0100, Robert O'Callahan
> <robert@ocallahan.org> wrote:
> > For table elements, getClientRects returns a rect for the table
> > border-box and a separate rect for the caption if one is present (both
> > in Gecko 1.9 and IE7 IIRC). You might want to mention this in the spec.
>
> Done. (For all elements whose computed value of display has a value of
> table or inline-table and which have a child element whose computed value
> of display is table-caption.)


> The first representing the table box and the second the caption box and
stop this algorithm.

This isn't a well-formed sentence. Also, this isn't quite accurate; when
tables break vertically you may want to return additional rects, e.g. table,
caption, table, table. (Although since we don't currently break tables
across CSS3 column boundaries, it's not possible for Web authors to observe
this in FF3. Hopefully it will be possible in a future release.)

> Anonymous block boxes such as those created for block-in-inline splits
> > are "drilled into" by getClientRects. So for example, given
> > <span>Foo <div style="width:50px; height:50px;"></div> Bar</span>
> > the span would have three client rects, one for the first inline, one
> for
> > the <div> (with width 50px), and one for the last inline. This is true
> in
> > both Gecko 1.9 and IE7 and it matters for Web-compatibility.
>
> Fixed.


> describing the border boxes, including anonymous block boxes<http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level>

This seems to be the opposite of what I wanted. I probably wasn't clear
enough. In the example I gave the anonymous block box is actually as wide as
the containing block. Instead of returning that, getClientRects must return
the real block box contained in the anonymous block box. (Note there may
actually be multiple levels of anonyous block boxes the algorithm has to
unwrap.)

Other than that the changes look great. Thanks!!

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]

Received on Sunday, 9 March 2008 20:06:33 UTC