Skip to content

Commit

Permalink
handle downward-growing cells (those with rowspan=0)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@313 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 21, 2006
1 parent 6d269a3 commit 3f73527
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
34 changes: 18 additions & 16 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -15360,25 +15360,27 @@ disallow: http://microformats.org/wiki/rel-enclosure
title="">current</sub></var>&nbsp;&le;&nbsp;<var
title="">y</var>&nbsp;&lt;&nbsp;<var title="">y<sub
title="">current</sub></var>+<var title="">rowspan</var></span> be
covered by a new <a href="#cell" title=concept-cell>cell</a>, anchored
at (<var title="">x<sub title="">current</sub></var>, <var
title="">y<sub title="">current</sub></var>), which has width <var
covered by a new <a href="#cell" title=concept-cell>cell</a> <var
title="">c</var>, anchored at (<var title="">x<sub
title="">current</sub></var>, <var title="">y<sub
title="">current</sub></var>), which has width <var
title="">colspan</var> and height <var title="">rowspan</var>,
corresponding to the <var title="">current cell</var> element.</p>

<p>If the <var title="">current cell</var> element is a <code><a
href="#th0">th</a></code> element, let this new cell be a header cell;
otherwise, let it be a data cell.</p>
href="#th0">th</a></code> element, let this new cell <var
title="">c</var> be a header cell; otherwise, let it be a data cell.</p>

<p>If any of the slots involved already had a <a href="#cell"
title=concept-cell>cell</a> covering them, then this is a <a
href="#table3">table model error</a>.</p>
href="#table3">table model error</a>. Those slots now have two cells
overlapping.</p>

<li>
<p>If <var title="">cell grows downward</var> is true, then add the tuple
{<var title="">current cell</var>, <var title="">x<sub
title="">current</sub>, <var title="">colspan</var>} to the <var
title="">list of downward-growing cells</var>.</var></p>
{<var title="">c</var>, <var title="">x<sub title="">current</sub>, <var
title="">colspan</var>} to the <var title="">list of downward-growing
cells</var>.</var></p>

<li>
<p>Increase <var title="">x<sub title="">current</sub></var> by <var
Expand Down Expand Up @@ -15417,13 +15419,13 @@ disallow: http://microformats.org/wiki/rel-enclosure
<li>
<p>For each {<var title="">cell</var>, <var title="">cell<sub
title="">x</sub></var>, <var title="">width</var>} tuple in the <var
title="">list of downward-growing cells</var>, run the following
algorithm:</p>

<ol>
<li>
<p class=big-issue>...</p>
</ol>
title="">list of downward-growing cells</var>, extend the <a
href="#cell" title=concept-cell>cell</a> <var title="">cell</var> so
that it also covers the slots with coordinates (<var title="">x</var>,
<var title="">y<sub title="">current</sub></var>), where <span><var
title="">cell<sub title="">x</sub></var>&nbsp;&le;&nbsp;<var
title="">x</var>&nbsp;&lt;&nbsp;<var title="">cell<sub
title="">x</sub></var>+<var title="">width</var>-1</span>.</p>
</ol>

<p>If, after establishing which elements correspond to which slots, there
Expand Down
36 changes: 17 additions & 19 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13872,26 +13872,28 @@ disallow: http://microformats.org/wiki/rel-enclosure
title="">current</sub></var>&nbsp;&le;&nbsp;<var
title="">y</var>&nbsp;&lt;&nbsp;<var title="">y<sub
title="">current</sub></var>+<var title="">rowspan</var></span> be
covered by a new <span title="concept-cell">cell</span>, anchored
at (<var title="">x<sub title="">current</sub></var>, <var
title="">y<sub title="">current</sub></var>), which has width <var
covered by a new <span title="concept-cell">cell</span> <var
title="">c</var>, anchored at (<var title="">x<sub
title="">current</sub></var>, <var title="">y<sub
title="">current</sub></var>), which has width <var
title="">colspan</var> and height <var title="">rowspan</var>,
corresponding to the <var title="">current cell</var> element.</p>

<p>If the <var title="">current cell</var> element is a
<code>th</code> element, let this new cell be a header cell;
otherwise, let it be a data cell.</p>
<code>th</code> element, let this new cell <var title="">c</var>
be a header cell; otherwise, let it be a data cell.</p>

<p>If any of the slots involved already had a <span
title="concept-cell">cell</span> covering them, then this is a
<span>table model error</span>.</p>
<span>table model error</span>. Those slots now have two cells
overlapping.</p>

</li>

<li>

<p>If <var title="">cell grows downward</var> is true, then add
the tuple {<var title="">current cell</var>, <var title="">x<sub
the tuple {<var title="">c</var>, <var title="">x<sub
title="">current</sub>, <var title="">colspan</var>} to the <var
title="">list of downward-growing cells</var>.</p>

Expand Down Expand Up @@ -13956,18 +13958,14 @@ disallow: http://microformats.org/wiki/rel-enclosure

<p>For each {<var title="">cell</var>, <var title="">cell<sub
title="">x</sub></var>, <var title="">width</var>} tuple in the
<var title="">list of downward-growing cells</var>, run the
following algorithm:</p>

<ol>

<li>

<p class="big-issue">...</p>

</li>

</ol>
<var title="">list of downward-growing cells</var>, extend the
<span title="concept-cell">cell</span> <var title="">cell</var> so
that it also covers the slots with coordinates (<var
title="">x</var>, <var title="">y<sub
title="">current</sub></var>), where <span><var title="">cell<sub
title="">x</sub></var>&nbsp;&le;&nbsp;<var
title="">x</var>&nbsp;&lt;&nbsp;<var title="">cell<sub
title="">x</sub></var>+<var title="">width</var>-1</span>.</p>

</li>

Expand Down

0 comments on commit 3f73527

Please sign in to comment.