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
Родитель d5926230f3
Коммит 0d96d79660
2 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -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();

Просмотреть файл

@ -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();