summaryrefslogtreecommitdiff
path: root/layout/reftests/table-bordercollapse
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-bordercollapse
parent4d373c1d360b29f94026b72c6f66e4ad313732cf (diff)
downloaduxp-fb564353f2f8e9b4ba01e814c06bb29828099268.tar.gz
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-bordercollapse')
-rw-r--r--layout/reftests/table-bordercollapse/bug1379306-ref.html31
-rw-r--r--layout/reftests/table-bordercollapse/bug1379306.html30
-rw-r--r--layout/reftests/table-bordercollapse/reftest.list1
3 files changed, 62 insertions, 0 deletions
diff --git a/layout/reftests/table-bordercollapse/bug1379306-ref.html b/layout/reftests/table-bordercollapse/bug1379306-ref.html
new file mode 100644
index 0000000000..76c8ef813e
--- /dev/null
+++ b/layout/reftests/table-bordercollapse/bug1379306-ref.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<title>Table Cell Testcase, bug 1379306</title>
+<style>
+ table.collapse {
+ border-collapse: collapse;
+ }
+ td {
+ border: 20px solid #aaa;
+ width: 120px;
+ height: 150px;
+ }
+ .first {
+ background-color: #000;
+ position: absolute;
+ top: 20px;
+ left: 20px;
+ height: 10px;
+ width: 20px
+ }
+</style>
+<h1>Table Cell Testcase, bug 1379306</h1>
+
+<div style="position: relative;">
+ <table class="collapse">
+ <tr>
+ <td>
+ <div class="first"></div>
+ </td>
+ </tr>
+ </table>
+</div> \ No newline at end of file
diff --git a/layout/reftests/table-bordercollapse/bug1379306.html b/layout/reftests/table-bordercollapse/bug1379306.html
new file mode 100644
index 0000000000..2d7f4bce42
--- /dev/null
+++ b/layout/reftests/table-bordercollapse/bug1379306.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<title>Table Cell Testcase, bug 1379306</title>
+<style>
+ table.collapse {
+ border-collapse: collapse;
+ }
+ td {
+ border: 20px solid #aaa;
+ width: 120px;
+ height: 150px;
+ position: relative;
+ }
+ div {
+ background-color: #000;
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 10px;
+ width: 20px
+ }
+</style>
+<h1>Table Cell Testcase, bug 1379306</h1>
+
+<table class="collapse">
+ <tr>
+ <td>
+ <div></div>
+ </td>
+ </tr>
+</table> \ No newline at end of file
diff --git a/layout/reftests/table-bordercollapse/reftest.list b/layout/reftests/table-bordercollapse/reftest.list
index 2610d202d8..2cd93397e8 100644
--- a/layout/reftests/table-bordercollapse/reftest.list
+++ b/layout/reftests/table-bordercollapse/reftest.list
@@ -3,6 +3,7 @@
== bug1375518-3.html bug1375518-ref.html
== bug1375518-4.html bug1375518-4-ref.html
== bug1375518-5.html bug1375518-5-ref.html
+== bug1379306.html bug1379306-ref.html
== bug1394226.html bug1394226-ref.html
!= bug1394226.html bug1394226-notref.html
== bc_dyn_cell1.html bc_dyn_cell1_ref.html