Bug 261100 - tfoot printed on separate page when assigned to @page rule
Summary: tfoot printed on separate page when assigned to @page rule
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-03 23:39 PDT by nico.peterson
Modified: 2023-09-10 23:40 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nico.peterson 2023-09-03 23:39:20 PDT
When a table is assigned to a @page rule, everything except the tfoot element works just fine. The tfoot is printed on a extra page.
It also depends on the layout.

This does not work:
<!DOCTYPE html>
<html>
	<body>
		<style>
			@page testprint{size: landscape auto;}
			table{page:testprint;}
		</style>
		<table>
			<tfoot>
				<tr> 
					<th> testfoot </th>
				</tr>
			</tfoot>
			<tbody>
				<tr> <td> testline </td> </tr>
			</tbody>
		</table>
	</body>
</html>

But this works:
<!DOCTYPE html>
<html>    <body>        <style>            @page testprint{size: landscape auto;}            table{page:testprint;}        </style>        <table>            <tfoot>                <tr>                     <th> testfoot</th>                </tr>            </tfoot>            <tbody>                <tr>
					<td> testline </td>
				</tr>            </tbody>        </table>    </body>
</html>
Comment 1 Radar WebKit Bug Importer 2023-09-10 23:40:19 PDT
<rdar://problem/115272119>