summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-html/bug1379306-2.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/bug1379306-2.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/bug1379306-2.html')
-rw-r--r--layout/reftests/table-html/bug1379306-2.html21
1 files changed, 21 insertions, 0 deletions
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