gecko-dev/layout/html/tests/table/bugs/bug30692.html

48 строки
1.1 KiB
HTML

<html>
<body>
BUG: Inside a cell, "height:x%" is ignored. It looks like 'auto' is used instead.<br>
<li>Absolute units work correctly (eg. 50px).
<li>"width:x%" works correctly.
<hr>
<table style="height:100px;width:100%">
<tr>
<td style="height:100%;width:100%;background: red;" >
<textarea style="width:80%;height:80%">BUG: the height of the textarea is not 80%</textarea>
</td>
</tr>
</table>
<hr>
<table style="height:100px;width:100%">
<tr>
<td style="height:100%;width:100%;background: red;" >
<textarea style="width:80%;height:80px">OK: the height of the textarea is 80 pixels</textarea>
</td>
</tr>
</table>
<hr>
<table style="height:100px;width:100%">
<tr>
<td style="height:100%;width:100%;background: red;" >
<p style="width:80%;height:80%;background:lightyellow;">BUG: the height of the P is not 80%</p>
</td>
</tr>
</table>
<hr>
<table style="height:100px;width:100%">
<tr>
<td style="height:100%;width:100%;background: red;" >
<p style="width:80%;height:80px;background:lightyellow;">OK: the height of the P is 80 pixels</p>
</td>
</tr>
</table>
</body>
</html>