Open Bug 1191801 Opened 8 years ago Updated 1 year ago

calculate hypothetical box better in abs-pos scenarios with mixed block directions


(Core :: Layout, defect)





(Reporter: jfkthame, Unassigned)


(Blocks 1 open bug)


Followup to bug 1183431:

When the block direction of the absolute containing block is different from the block direction of the positioned element's immediate block container, we need to know the box's block size in order to convert the initially-calculated hypothetical box position to the correct block-start position in the absolute containing block's mode.

Currently, we don't know that in some cases (when block-size is auto, and the element is non-replaced or has no intrinsic size) and therefore we do not compute the correct block-dir position.

Two of the tests in reftests/writing-mode/abspos/ fail because of this.

We presumably need to reflow the abs-pos box during CalculateHypotheticalBox in order to fix this.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.