Migrate reftest-paged reftests in layout/reftests/table-overflow into wpt.

Note that on Chrome table-row-pagination-001-print.html doesn't generate the
second page at least in the print preview.  The second page is actually just a
blank page, but the height of a table element in the test is `160%` so that
there should be overflowed area from the first page.

It may be possible that it's an optimization in Chrome to reduce paper
consumption, but the second page in the reference, it's also a blank page, is
generated in the print preview, so I suppose it's either a bug or an
inconsistent optimization in Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D81635

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1645274
gecko-commit: 7c2100b753269fb78885ae3ce968aaae0a1eb107
gecko-integration-branch: autoland
gecko-reviewers: TYLin
diff --git a/html/rendering/non-replaced-elements/tables/table-row-pagination-001-print-ref.html b/html/rendering/non-replaced-elements/tables/table-row-pagination-001-print-ref.html
new file mode 100644
index 0000000..2aa9410
--- /dev/null
+++ b/html/rendering/non-replaced-elements/tables/table-row-pagination-001-print-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Testing row split</title>
+<style type="text/css">
+@page { size:5in 3in; margin:0.5in; }
+html,body {
+  color:black;
+  background-color:white;
+  font-size:16px;
+  padding:0;
+  margin:0;
+  height:100%;
+}
+div { height:160%; }
+p { height: 50%; margin:0; }
+</style>
+</head>
+<body>
+
+<div>
+<p></p>
+<p>1</p>
+</div>
+
+
+</body>
+</html>
diff --git a/html/rendering/non-replaced-elements/tables/table-row-pagination-001-print.html b/html/rendering/non-replaced-elements/tables/table-row-pagination-001-print.html
new file mode 100644
index 0000000..3a14558
--- /dev/null
+++ b/html/rendering/non-replaced-elements/tables/table-row-pagination-001-print.html
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<link rel="match" href="table-row-pagination-001-print-ref.html">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#tables-2">
+<link rel="help" href="https://drafts.csswg.org/css-break/">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
+<meta charset="utf-8">
+<title>Testing row split</title>
+<style type="text/css">
+@page { size:5in 3in; margin:0.5in; }
+html,body {
+  color:black;
+  background-color:white;
+  font-size:16px;
+  padding:0;
+  margin:0;
+  height:100%;
+}
+table { height:160%; width:100%; }
+td { height:50%; width:100%; }
+</style>
+</head>
+<body>
+
+<table border="0" cellspacing="0" cellpadding="0">
+<tr><td></td></tr>
+<tr><td valign="top">1</td></tr>
+</table>
+
+
+</body>
+</html>
diff --git a/html/rendering/non-replaced-elements/tables/table-row-pagination-002-print-ref.html b/html/rendering/non-replaced-elements/tables/table-row-pagination-002-print-ref.html
new file mode 100644
index 0000000..91400fc
--- /dev/null
+++ b/html/rendering/non-replaced-elements/tables/table-row-pagination-002-print-ref.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<style>
+@page { size:5in 3in; margin:0.5in; }
+</style>
+</head>
+<body>
+  <div style="height:3in">Tall div. (Scroll to end.)</div>
+  <div>IS THIS TEXT VISIBLE IN PRINT PREVIEW?</div>
+  <div>[clear:left]</div>
+</body>
+</html>
diff --git a/html/rendering/non-replaced-elements/tables/table-row-pagination-002-print.html b/html/rendering/non-replaced-elements/tables/table-row-pagination-002-print.html
new file mode 100644
index 0000000..bc1c420
--- /dev/null
+++ b/html/rendering/non-replaced-elements/tables/table-row-pagination-002-print.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<link rel="match" href="table-row-pagination-002-print-ref.html">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#tables-2">
+<link rel="help" href="https://drafts.csswg.org/css-break/">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=963441">
+<style>
+@page { size:5in 3in; margin:0.5in; }
+</style>
+</head>
+<body>
+  <div style="float: left">
+    <table cellpadding=0 cellspacing=0>
+      <tr>
+        <td>
+          <div style="height:3in">Tall div. (Scroll to end.)</div>
+          <div>IS THIS TEXT VISIBLE IN PRINT PREVIEW?</div>
+        </td>
+      </tr>
+    </table>
+  </div>
+  <div style="clear: left">[clear:left]</div>
+</body>
+</html>