[webkit-dev] Table hit testing

Fady Samuel fsamuel at google.com
Thu May 20 13:38:09 PDT 2010


So what are the rules for stacking here? do the cells stack in the order in
which they appear in the HTML?

Cell 7 is defined after cell 5 and therefore it "owns" that position?

Thanks,

Fady

On Thu, May 20, 2010 at 4:18 PM, David Hyatt <hyatt at apple.com> wrote:

> On May 20, 2010, at 3:07 PM, David Hyatt wrote:
>
> If we could properly detect those degenerate cases, then you could probably
> get away with binary search, but until we do that, I don't think you can.
>
>
> Here's an example:
>
> <STYLE> TD:hover { color: green } </STYLE > <TABLE border="1"> <TR><TD>1
> <TD>2 <TD>3 <TR><TD>4 <TD rowspan="2">5 <TD>6 <TR><TD colspan="2">7 <TD>9
> </TABLE>
>
> In this example, cell 5 and cell 7 actually overlap and share a position in
> the grid.  You can see that hit testing works properly and gives cell 7
> precedence over cell 5 (e.g., if you're in overlapping background areas of
> the cell, then cell 7 wins).
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100520/9f4bc2d7/attachment.html>


More information about the webkit-dev mailing list