[webkit-dev] Table hit testing

David Hyatt hyatt at apple.com
Thu May 20 13:18:42 PDT 2010

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:

TD:hover { color: green }
<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

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/d44a6c7b/attachment.html>

More information about the webkit-dev mailing list