File: bug32205-2.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (76 lines) | stat: -rw-r--r-- 2,371 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<html>
<head>
<title>Bug Example for Bug 32205</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF">

<p>This is a simple example of table height problems with only a single table. 
</p>
<p>The indention here is to specify a table with two rows. The table has a fixed 
  overall width (200 for the example) and two rows. The first row 'just high enough' 
  for a title line, and the second contains the rest. Creating such a table is 
  hamperd by a number of bugs</p>
<ol>
  <li>If a height is specified for only one row (not both) then it will be ignored 
  </li>
  <li> If specified heights are insufficient (because the content is too large) 
    then the entire table will be expanded. </li>
  <li>Percentage heights appear to simply be translated into pixel heights prior 
    to other processing, so offer no additional solutions </li>
</ol>
<p>This following table ought to give the desired results (small title line, large 
  body)</p>
<p>It is specifiable as </p>
<blockquote>
  <p>Table height: 200 <br>
    First Row : 1 or 1% <i>(i.e. expand to minimum required)</i><br>
    Second Row : unspecified <i> (i.e. table height - height of other rows+borders) 
    </i> </p>
</blockquote>
<table height=200 border=1>
<tr>
   <td height=20>  title line</td>
</tr>
<tr>
  <td>  rest of space</td>
</tr>
</table>

<p>This doesn't work because of the 1st bug above. </p>
<p>A second attempt is to specify heights that do add up to the total.</p>
<p> Table height: 200 <br>
  First Row : 1 <br>
  Second Row : 199 </p>
<table height=200 border=1>
<tr>
   <td height=1>  title line</td>
</tr>
<tr>
  <td height=199>  rest of space</td>
</tr>
</table>

<p>This appears ok, but close inspection will show that the table is now >200 
  pixels high (2rd bug). </p>
<p>A third attempt using 1% and 99% gives identical results (3rd bug).</p>
<p> A related bug is the the height of a row that is not specified explicitly 
  cannot be used by its children. </p>
<p>This example is a table of height 200 with a single row of unspecified height. 
  This contains a DIV whose style is height:100%. It ought to fill the entire 
  table. </p>
<table height=200 border=1>
<tr>
<td>
<div style="height:100%;background-color:red">A 100% div inside a row of unspecified height</div>
</td>
</tr>
</table>



</body>

</html>