Closed Bug 1765664 Opened 2 years ago Closed 2 years ago

We might be incorrectly computing the static position of abspos frames in orthogonal flow

Categories

(Core :: Layout: Positioned, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

STR:

  1. Load attached testcase.
  2. Compare the position of the top "Hello" vs. the other pink elements. Also, compare the position of all of the elements, when you tick/untick "position:absolute" in devtools.

ACTUAL RESULTS:

  • The top pink box (with intrinsically sized "Hello") is positioned differently from all the others. (It's inside the blue box.) (Note: This part might be a version of bug 1166120.)
  • The others are all positioned outside of the blue box.

EXPECTED RESULTS:

  • All of the pink elements should be positioned at a consistent/understandable horizontal position.
  • Maybe they should all be positioned inside the blue box? (at the position they end up if you remove position:absolute). At least, that's what the static position is supposed to represent, i think...
See Also: → 1765654
Attached file testcase 1
Blocks: 1765668
See Also: → 1765668
Attached file reference case 1

Here's a reference case -- I think we should expect testcase 1 to render like this.

(This is the same as testcase 1, except that in this reference, I'm using direction:rtl instead of writing-mode:vertical-rl on the containing block. We seem to handle this properly.)

Blocks: writing-mode

:dholbert - (sorry for poking in - randomly looking at bugs)

FF is currently correct here for everything but the first width:auto case.
(all the pink boxes should be out the RHS).

You want to compare it to if the abs-pos elements had "position: static", but also keep the containing-block (".horiz-parent") the same size.
E.g.
.horiz-parent { width: 0; }
.abspos { position: static; width: fit-content; }

Ian

Aha! Thanks, Ian - I forgot that the containing block here would be collapsing its size to 0 when the abspos thing is abspos.

I'll poke around with some more testcases today, and I'll either just reduce the scope to cover the first width:auto case, or more likely spin that off to a new bug for a fresh start.

See Also: → 1766530

I filed bug 1766530 for the first case in the attached testcase (the part with the width:auto abspos thing) where Firefox is getting things wrong. I included a clearer testcase over there.

Beyond that, this bug was me just misunderstanding things, for reasons discussed in comment 5 - comment 6. --> closing this out as INVALID.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: