Fix calculation of block axis for abspos elements

The calculation of the block axis positioning of absolutely positioned
elements was using the inline size of the containing block instead of
the block size.
This commit is contained in:
Martin Robinson 2023-04-14 11:15:16 +02:00
parent 15f966bde5
commit c23f05583b
10 changed files with 3 additions and 28 deletions

View file

@ -458,8 +458,7 @@ impl HoistedAbsolutelyPositionedBox {
};
let solve_block_axis = |computed_size| {
solve_axis(
// TODO(delan) shouldnt this be cbbs?
cbis,
cbbs,
pbm.padding_border_sums.block,
pbm.margin.block_start,
pbm.margin.block_end,

View file

@ -1,2 +0,0 @@
[background-position-152.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[height-percentage-003.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[bottom-offset-percentage-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[left-offset-percentage-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[top-offset-percentage-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[top-offset-percentage-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[position-absolute-percentage-inherit-001.xht]
expected: FAIL

View file

@ -1,16 +1,4 @@
[position-absolute-dynamic-containing-block.html]
[abs containing block moves from outer to intermediate]
expected: FAIL
[abs containing block moves from intermediate to outer]
expected: FAIL
[target is no longer absolute]
expected: FAIL
[target becomes absolute]
expected: FAIL
[fixed containing block moves from outer to intermediate]
expected: FAIL

View file

@ -0,0 +1,2 @@
[position-absolute-fit-content.html]
expected: FAIL