Forum Bugs

Prince does not support table attributes "rules" and "frame"

henning
Hi,

Prince does not support the table attributes "rules" and "frame", which are part of the W3C specs. Some effects can be easily recreated using CSS, but some can not (see the first table in the example).

Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<title>table</title>
</head>
<body>

<table border="1" frame="vsides" rules="cols">
	<tr>
		<td>1</td>
		<td>2</td>
		<td>3</td>
	</tr>
	<tr>
		<td>4</td>
		<td>5</td>
		<td>6</td>
	</tr>
	<tr>
		<td>7</td>
		<td>8</td>
		<td>9</td>
	</tr>
</table>

<p>
	<br /><br />
</p>

<table border="1" frame="void" rules="none">
	<tr>
		<td>1</td>
		<td>2</td>
		<td>3</td>
	</tr>
	<tr>
		<td>4</td>
		<td>5</td>
		<td>6</td>
	</tr>
	<tr>
		<td>7</td>
		<td>8</td>
		<td>9</td>
	</tr>
</table>

</body>
</html>


Thanks,

Henning
  1. table1.pdf13.6 kB
    Prince output
mikeday
I think you should be able to achieve this by using "border-collapse: collapse" and applying borders to the table cells.