Open Bug 1758453 Opened 2 years ago Updated 2 years ago

Contents don't flow around shape-outside image

Categories

(Core :: Layout: Floats, defect)

Firefox 99
defect

Tracking

()

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached file testcase 1

Under special circumstances shape-outside and shape-image-threshold don't cause a layout reflow causing the contents not floating around the image shape.

I've attached a test case that demonstrates the issue.

Sebastian

Here's a screenshot of the test case causing the issue.

Sebastian

Thanks for the bug report!

This seems to be an invalidation / incremental-layout bug of some sort, because if I force a relayout by inspecting the image or the text in devtools, the text suddenly snaps to the right position (hugging the egg more closely).

Attached file testcase 2 (reduced)

Here's a reduced testcase. It looks like we're failing to use the image for shape-outside purposes, beyond its direct block container. (Though as noted above, you can force it to work if you trigger a relayout by e.g. inspecting an element or changing the full-page-zoom level.)

Attachment #9266821 - Attachment description: test_case.html → testcase 1
Severity: -- → S3

Note: I ran into another issue when working on a testcase for this, where we seem to be scaling the shape-outside image when other browsers don't scale it. I filed that one as bug 1758563.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: