mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 00:37:32 +09:00
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.
This commit is contained in:
parent
179b6782d5
commit
48b7e80724
9 changed files with 154 additions and 2 deletions
21
layout/reftests/table-html/bug1379306-2-ref.html
Normal file
21
layout/reftests/table-html/bug1379306-2-ref.html
Normal file
|
|
@ -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>
|
||||
21
layout/reftests/table-html/bug1379306-2.html
Normal file
21
layout/reftests/table-html/bug1379306-2.html
Normal file
|
|
@ -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>
|
||||
23
layout/reftests/table-html/bug1379306-3-ref.html
Normal file
23
layout/reftests/table-html/bug1379306-3-ref.html
Normal file
|
|
@ -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>
|
||||
23
layout/reftests/table-html/bug1379306-3.html
Normal file
23
layout/reftests/table-html/bug1379306-3.html
Normal file
|
|
@ -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>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue