AFAICT you could have an arbitrary number up to the width or height of the table, whichever is smaller, by combining row- and colspans - e.g. with 3 ([v]aligns just to emphasize the overlapping):<div><br></div><div><div><div>
<table border=1><tbody></div><div><tr><td>R1C1</td><td>R1C2</td><td rowspan=3 valign=bottom>\\\\\\</td></tr></div><div><tr><td>R2C1</td><td rowspan=2 colspan=2 align=right valign=bottom>//////</td></tr></div>
<div><tr><td colspan=3 align=right>----</td></tr></div><div></tbody></table></div></div><div><br></div><div>- Roland</div><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 8:58 AM, Fady Samuel <span dir="ltr"><<a href="mailto:fsamuel@google.com">fsamuel@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hi David,<br><br>Just so I'm certain, there's no way for more than two cells to overlap in a single grid slot, is there? <br>
<br>Thanks,<br><font color="#888888"><br>Fady Samuel</font><div class="im"><br><br><div class="gmail_quote">On Thu, May 20, 2010 at 4:43 PM, David Hyatt <span dir="ltr"><<a href="mailto:hyatt@apple.com" target="_blank">hyatt@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div>On May 20, 2010, at 3:38 PM, Fady Samuel wrote:<br>
<br>
> So what are the rules for stacking here? do the cells stack in the order in which they appear in the HTML?<br>
><br>
<br>
</div>Correct, although note that backgrounds paint behind foregrounds, and hit testing works the same way, so it's not as simple as saying that cell 7 is always above cell 5. �They're interleaved, so from bottom to top:<br>
<br>
Cell 5 background<br>
Cell 7 background<br>
Cell 5 foreground (the number "5" in this example)<br>
Cell 7 foreground (the number "7" in this example)<br>
<br>
That's why if you hover over the actual number 5 in that example it will light up, but if you're in the background area overlap, the number 7 will light up.<br>
<br>
<a href="http://www.w3.org/TR/CSS21/zindex.html" target="_blank">http://www.w3.org/TR/CSS21/zindex.html</a><br>
<br>
Therefore you do have to know about all the cells at the position, since when you're in the "foreground" phase of hit testing, cell 7 will say "Nope, you're not inside my foreground", and so you then need to check cell 5, which will say "Yes, you are inside my foreground."<br>
<br>
The grid structure just isn't expressive enough. �It needs to be patched to track all cells in a given row/column instead of just the first one.<br>
<br>
dave<br>
(<a href="mailto:hyatt@apple.com" target="_blank">hyatt@apple.com</a>)<br>
<br>
</blockquote></div><br></div></div>
<br>_______________________________________________<br>
webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
<a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
<br></blockquote></div><br></div>