summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-html
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-06-02 11:55:46 +0300
committerwin7-7 <win7-7@users.noreply.github.com>2020-06-02 11:55:46 +0300
commitfb564353f2f8e9b4ba01e814c06bb29828099268 (patch)
treeb3ad0991109bcd25f3e791b54c1bc896442b1a7e /layout/reftests/table-html
parent4d373c1d360b29f94026b72c6f66e4ad313732cf (diff)
downloadUXP-fb564353f2f8e9b4ba01e814c06bb29828099268.tar
UXP-fb564353f2f8e9b4ba01e814c06bb29828099268.tar.gz
UXP-fb564353f2f8e9b4ba01e814c06bb29828099268.tar.lz
UXP-fb564353f2f8e9b4ba01e814c06bb29828099268.tar.xz
UXP-fb564353f2f8e9b4ba01e814c06bb29828099268.zip
issue #1575 - Fix the wrong position when we calculate the position for position:absolute child and add reftests
Use |GetUsedBorder| instead of |GetComputedBorder| when we calculate the position for position:absolute child.
Diffstat (limited to 'layout/reftests/table-html')
-rw-r--r--layout/reftests/table-html/bug1379306-2-ref.html21
-rw-r--r--layout/reftests/table-html/bug1379306-2.html21
-rw-r--r--layout/reftests/table-html/bug1379306-3-ref.html23
-rw-r--r--layout/reftests/table-html/bug1379306-3.html23
-rw-r--r--layout/reftests/table-html/reftest.list2
5 files changed, 90 insertions, 0 deletions
diff --git a/layout/reftests/table-html/bug1379306-2-ref.html b/layout/reftests/table-html/bug1379306-2-ref.html
new file mode 100644
index 000000000..a02d92bb2
--- /dev/null
+++ b/layout/reftests/table-html/bug1379306-2-ref.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<title>Table Row Testcase, bug 1379306</title>
+<style>
+
+table { background: yellow }
+td { height: 50px; width: 200px; background: aqua; }
+div { background: fuchsia; height: 10px; width: 20px }
+
+tr { position: relative; border: 30px solid blue; }
+div { position: absolute; top: 0; left: 0 }
+
+</style>
+<h1>Table Row Testcase, bug 1379306</h1>
+
+<table>
+ <tr>
+ <td>
+ <div></div>
+ </td>
+ </tr>
+</table> \ No newline at end of file
diff --git a/layout/reftests/table-html/bug1379306-2.html b/layout/reftests/table-html/bug1379306-2.html
new file mode 100644
index 000000000..f04d0219f
--- /dev/null
+++ b/layout/reftests/table-html/bug1379306-2.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<title>Testcase, bug 1379306</title>
+<style>
+
+table { background: yellow }
+td { height: 50px; width: 200px; background: aqua; }
+div { background: fuchsia; height: 10px; width: 20px }
+
+tr { position: relative; border: 10px solid blue }
+div { position: absolute; top: 0; left: 0 }
+
+</style>
+<h1>Table Row Testcase, bug 1379306</h1>
+
+<table>
+ <tr>
+ <td>
+ <div></div>
+ </td>
+ </tr>
+</table> \ No newline at end of file
diff --git a/layout/reftests/table-html/bug1379306-3-ref.html b/layout/reftests/table-html/bug1379306-3-ref.html
new file mode 100644
index 000000000..ffb70b46e
--- /dev/null
+++ b/layout/reftests/table-html/bug1379306-3-ref.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML>
+<title>Testcase, bug 1379306</title>
+<style>
+
+table { background: yellow }
+td { height: 50px; width: 200px; background: aqua; }
+div { background: fuchsia; height: 10px; width: 20px }
+
+tbody { position: relative; border: 30px solid blue }
+div { position: absolute; top: 0; left: 0 }
+
+</style>
+<h1>Table Row Group Testcase, bug 1379306</h1>
+
+<table>
+ <tbody>
+ <tr>
+ <td>
+ <div></div>
+ </td>
+ </tr>
+ </tbody>
+</table> \ No newline at end of file
diff --git a/layout/reftests/table-html/bug1379306-3.html b/layout/reftests/table-html/bug1379306-3.html
new file mode 100644
index 000000000..3192902ef
--- /dev/null
+++ b/layout/reftests/table-html/bug1379306-3.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML>
+<title>Testcase, bug 1379306</title>
+<style>
+
+table { background: yellow }
+td { height: 50px; width: 200px; background: aqua; }
+div { background: fuchsia; height: 10px; width: 20px }
+
+tbody { position: relative; border: 10px solid blue }
+div { position: absolute; top: 0; left: 0 }
+
+</style>
+<h1>Table Row Group Testcase, bug 1379306</h1>
+
+<table>
+ <tbody>
+ <tr>
+ <td>
+ <div></div>
+ </td>
+ </tr>
+ </tbody>
+</table> \ No newline at end of file
diff --git a/layout/reftests/table-html/reftest.list b/layout/reftests/table-html/reftest.list
index 362a96096..c3a4010ca 100644
--- a/layout/reftests/table-html/reftest.list
+++ b/layout/reftests/table-html/reftest.list
@@ -1,2 +1,4 @@
== cell-align-stopped-at-table-1-standards.html cell-align-stopped-at-table-1-standards-ref.html
== cell-align-stopped-at-table-1-quirks.html cell-align-stopped-at-table-1-quirks-ref.html
+== bug1379306-2.html bug1379306-2-ref.html
+== bug1379306-3.html bug1379306-3-ref.html