Bug 261100

Summary: tfoot printed on separate page when assigned to @page rule
Product: WebKit Reporter: nico.peterson
Component: PrintingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>