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

@ -658,8 +658,8 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
// Get the border values
WritingMode outerWM = aReflowInput.GetWritingMode();
const LogicalMargin border(outerWM,
aReflowInput.mStyleBorder->GetComputedBorder());
const LogicalMargin border(outerWM, aDelegatingFrame->GetUsedBorder());
LogicalMargin margin =
kidReflowInput.ComputedLogicalMargin().ConvertTo(outerWM, wm);