1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
5 <META name=
"author" content=
"Ian Hickson">
6 <META name=
"copyright" content=
"© copyright 1999 Ian Hickson">
7 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 <META http-equiv=
"Content-Style-Type" content=
"text/css">
9 <TITLE>Evil Tests: Generic Table Tests
1</TITLE>
11 <STYLE TYPE=
"text/css">
13 .table { display: table; border: none; }
14 .cell { display: table-cell; border: none; }
15 .row { display: table-row; border: none; }
17 .full { width:
100%; }
18 .indented { margin-left:
5em; margin-right:
5em; }
19 .outdented { margin-left: -
5em; margin-right: -
5em; }
21 .gray { background: silver; color: black; }
23 .left { text-align: left; }
24 .right { text-align: right; }
26 .hide.this { display: none; } .note { border: double thick red;
35 <H1>Generic Table Tests -
1</H1>
37 <p>If you have any comments to make regarding this test, e-mail
<a
38 href=
"mailto:py8ieh=eviltests-table@bath.ac.uk">py8ieh=eviltests@bath.ac.uk
</a>.
</p>
41 <dt>Prerequisites
</dt>
42 <dd>Browsers that are subjected to this test should support CSS1 and the CSS2 table model, and multiple classes.
</dd>
45 <P class=note
>If this paragraph breaks the line here:
<SPAN
46 class=table
>and here:
</SPAN> then your browser
<em>does support
</em>
47 table values on 'display'.
<strong>If this paragraphs flows without
48 any undue breaks, then you should mark your browser as not supporting
49 table values!
</strong></P>
53 <P class="hide this">Multiple classes are not supported in this browser!</P>
54 <P><em>Every</em> example on this entire page should look the same.</P>
57 <h2>1. Table -
> Table Cell
</h2>
59 <P>Below there should be a gray bar, spanning the width of the BODY,
60 with the text
"Left" to the left and the text
"Right", on the same
61 line, flush to the right.
</P>
63 <DIV class=
"full gray table">
64 <DIV class=
"left cell">Left
</DIV>
65 <DIV class=
"right cell">Right
</DIV>
70 <h2>2. Auto Width</h2>
72 <p><strong>David, this test and the next one are those for which
73 NGLayout is not following Section 10.</strong></p>
75 <P>Below there should be the same gray bar as in test 1.</P>
77 <DIV class="gray table">
78 <DIV class="left cell">Left</DIV>
79 <DIV class="right cell">Right</DIV>
82 <P>This is because since the table has <code>width:auto</code> (which
83 is implied) and the margins are also <code>auto</code> (which is also
84 implied), and the padding is zero (more implication...), the margins
85 should be set to 0, and the width should be set to the containing
86 block's content width (the BODY's width). This is exactly the same as
87 setting <code>width</code> to 100% as is done in the first test.</P>
89 <h2>3. Negative Margins</h2>
91 <P>Below there should be the same gray bar as in test 1. Again.</P>
93 <DIV class="indented">
94 <DIV class="outdented gray table">
95 <DIV class="left cell">Left</DIV>
96 <DIV class="right cell">Right</DIV>
101 <h2>4. Table Row -> Table Cell</h2>
103 <P><strong>NGLayout is simply not doing anything with the table
104 elements here!</strong></P>
106 <P>This example should, once more, be exactly the same as the gray bar
109 <DIV class="gray row">
110 <DIV class="left cell">Left</DIV>
111 <DIV class="right cell">Right</DIV>
115 <h2>4. Lone Cells</h2>
117 <P>Guess what! This example should look the same as that in part 1 of
120 <DIV class="gray cell on left">Left</DIV>
121 <DIV class="gray cell on right">Right</DIV>
124 <h2>4. Table Row -> Non Tabular Content & Cells</h2>
126 <P>This should, once more, look the same as the first example...</P>
128 <DIV class="gray table">
129 <DIV class="left">Left</DIV>
130 <DIV class="right cell">Right</DIV>
136 <h2>Submit Results
</h2>
138 <FORM action=
"/%7Epy8ieh/cgi/newresult.pl" method=
"POST" class=
"resultsubmission">
139 <P>How does your browser fare on this test?
140 <SELECT NAME=
"result">
141 <OPTION VALUE=
"Y"> The test renders correctly.
</OPTION>
142 <OPTION VALUE=
"B"> The test renders incorrectly.
</OPTION>
143 <OPTION VALUE=
"N"> Table values for 'display' not supported.
</OPTION>
144 <!-- <OPTION VALUE="U"> Untestable: Multiple classes not supported. </OPTION>-->
145 <OPTION VALUE=
"U"> Untestable: CSS not supported.
</OPTION>
147 <LABEL>Comment:
<INPUT TYPE=
"text" NAME=
"comment"></LABEL>
148 <INPUT TYPE=
"submit" VALUE=
"Submit">
154 <p>Up to the
<a href=
"home.html">Table Tests
</A>.
</p>
155 <p>Up to the
<a href=
"../home.html">Evil Tests Page
</A>.
</p>
156 <!--<P>Bugzilla: <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=1959">Bug 1959</A></P>-->
157 <p>This page is maintained by
<a class=External
HREF=
"http://www.bath.ac.uk/%7Epy8ieh/">Ian Hickson
</A> (
<a class=Mail
HREF=
"mailto:py8ieh=website@bath.ac.uk">py8ieh@bath.ac.uk
</A>).
</p>
158 <p>Last updated in March
1999.
</p>