mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47: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
31
layout/reftests/table-bordercollapse/bug1379306-ref.html
Normal file
31
layout/reftests/table-bordercollapse/bug1379306-ref.html
Normal file
|
|
@ -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>
|
||||
30
layout/reftests/table-bordercollapse/bug1379306.html
Normal file
30
layout/reftests/table-bordercollapse/bug1379306.html
Normal file
|
|
@ -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>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue