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:
win7-7 2020-06-02 11:55:46 +03:00 committed by Roy Tam
commit 48b7e80724
9 changed files with 154 additions and 2 deletions

View 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>