Use the direction of the abs pos box, not its containing block, when deciding

which offset to use the static position for.  Bug 247287, r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2004-07-15 06:10:53 +00:00
parent d5926230f3
commit 0d96d79660
2 changed files with 2 additions and 6 deletions

View File

@ -981,9 +981,7 @@ nsHTMLReflowState::InitAbsoluteConstraints(nsIPresContext* aPresContext,
mComputedOffsets.right);
}
// When the CSS2 spec refers to direction it means the containing block's
// direction and not the direction of the absolutely positioned element itself
PRUint8 direction = cbrs->mStyleVisibility->mDirection;
PRUint8 direction = mStyleVisibility->mDirection;
// Initialize the 'width' computed value
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();

View File

@ -981,9 +981,7 @@ nsHTMLReflowState::InitAbsoluteConstraints(nsIPresContext* aPresContext,
mComputedOffsets.right);
}
// When the CSS2 spec refers to direction it means the containing block's
// direction and not the direction of the absolutely positioned element itself
PRUint8 direction = cbrs->mStyleVisibility->mDirection;
PRUint8 direction = mStyleVisibility->mDirection;
// Initialize the 'width' computed value
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();