|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: tables.src,v 1.16 1997-10-03 20:50:19 ian Exp $ --> |
| 3 | +<!-- $Id: tables.src,v 1.17 1997-10-09 11:11:19 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> |
6 | 6 | <title>Tables</title> |
@@ -128,7 +128,6 @@ class="propinst-column-span">'column-span'</span>, |
128 | 128 |
|
129 | 129 | <!-- #include src=properties/row-span.srb --> |
130 | 130 |
|
131 | | - |
132 | 131 | <p>How many rows a cell spans. See <a href="#table-layout">"Table |
133 | 132 | layout"</a> above for a discussion of how it is used to lay out cells |
134 | 133 | in a table. |
@@ -299,10 +298,10 @@ the start of the following list will be drawn:</p> |
299 | 298 | 'inset' will be drawn as 'groove'.</p> |
300 | 299 |
|
301 | 300 | <p>If the borders only differ in color, a color different from the |
302 | | -<span class="propinst-color">'color'</span> property of the two cells on either side will be preferred |
303 | | -over a color that only differs from one of the cells, which in turn |
304 | | -will be chosen over a border that doesn't differ in color from the |
305 | | -cells.</p> |
| 301 | +<span class="propinst-color">'color'</span> property of the two cells |
| 302 | +on either side will be preferred over a color that only differs from |
| 303 | +one of the cells, which in turn will be chosen over a border that |
| 304 | +doesn't differ in color from the cells.</p> |
306 | 305 |
|
307 | 306 | <p>If none of these rules determine the color of the border, the UA is |
308 | 307 | free to choose one of the colors.</p> |
@@ -424,20 +423,44 @@ violating this rule.</p> |
424 | 423 |
|
425 | 424 | <h2>Horizontal alignment of cells in a column</h2> |
426 | 425 |
|
| 426 | +<p>A cell is similar to a block in the way its contents are rendered, |
| 427 | +that means, in particular, that <span |
| 428 | +class="propinst-text-align">'text-align'</span> applies to |
| 429 | +it. However, tables also allow a way of aligning text that does not |
| 430 | +apply to other blocks, and that is aligning the contents of several |
| 431 | +cells so that they all align on, e.g., a decimal point. |
| 432 | + |
| 433 | +<p>More precisely, if the value of 'text-align' for a certain cell is |
| 434 | +a string, that cell has an <dfn>alignment point</dfn>, which is the |
| 435 | +start of that string. The aligment point must be straight above or |
| 436 | +below the alignment points of all other cells in the same column that |
| 437 | +have an alignment point. (Note that the other cells do not need to |
| 438 | +have the same value for <span |
| 439 | +class="propinst-text-align">'text-align'</span>; as long as they are |
| 440 | +aligned on a string, they have an alignment point.) |
| 441 | + |
| 442 | +<p>Aligning text in this way is only useful if the text is short |
| 443 | +enough not to be broken over several lines. The result is undefined if |
| 444 | +the text <em>is</em> broken. |
| 445 | + |
| 446 | +<p>If the string occurs more than once in the cell's content, the |
| 447 | +alignment point is the start of the first occurrence. |
| 448 | + |
| 449 | +<p>If the string doesn't occur, the alignment point is the end of the |
| 450 | +content. |
| 451 | + |
427 | 452 | <h2>Table captions: the <span |
428 | 453 | class="propinst-caption-side">'caption-side'</span> property</h2> |
429 | 454 |
|
430 | 455 | <!-- #include src=properties/caption-side.srb --> |
431 | 456 |
|
432 | | -<h2>Floating elements inside cells</h2> |
433 | | - |
434 | | -<p>... stay inside the cell? </p> |
435 | | - |
436 | 457 | <h2>Generating speech: the <span |
437 | 458 | class="propinst-speak-header-cell">'speak-header-cell'</span> property</h2> |
438 | 459 |
|
439 | 460 | <!-- #include src=properties/speak-header-cell.srb --> |
440 | 461 |
|
| 462 | +<p>[Does 'speak-header' apply to TH or to TD?] |
| 463 | + |
441 | 464 | <p>When a table is spoken by a speech generator, the relation between |
442 | 465 | the data cells and the header cells must be expressed in a different |
443 | 466 | way than by horizontal and vertical alignment. Some speech browsers |
@@ -587,7 +610,7 @@ spoken wasn't associated with this header.</p> |
587 | 610 | </html> |
588 | 611 | <!-- Keep this comment at the end of the file |
589 | 612 | Local variables: |
590 | | -mode: sgml |
| 613 | +mode:sgml |
591 | 614 | sgml-declaration:"~/SGML/HTML4.decl" |
592 | 615 | sgml-default-doctype-name:"html" |
593 | 616 | sgml-minimize-attributes:t |
|
0 commit comments