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

NEW
Unassigned

Status

()

Core
Layout
2 years ago
2 years ago

People

(Reporter: jfkthame, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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.
You need to log in before you can comment on or make changes to this bug.