Closed Bug 1616377 Opened 4 years ago Closed 2 years ago

Box with break-inside: avoid is being broken so that the columns can be balanced

Categories

(Core :: Layout: Columns, defect, P3)

74 Branch
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 793686
Webcompat Priority P3
Tracking Status
firefox-esr68 --- affected
firefox73 --- affected
firefox74 --- affected
firefox75 --- affected

People

(Reporter: bvisness, Unassigned)

References

Details

Attachments

(1 file)

Attached file break-avoid-test.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0

Steps to reproduce:

Attempted to use break-inside: avoid to prevent a box in a multi-column layout from being broken across columns.

See the attached file for an example case, or:

  • Create a div with column-count: 3.
  • Create a div inside it with break-inside: avoid.
  • Create three divs inside that, each with the content "test content".

Actual results:

A box with break-inside: avoid was broken across columns in order to balance the columns.

In the example, observe that the box with break-inside has been broken across columns.

Expected results:

The box should not have been broken. This is the behavior in Chrome and Safari.

Using the provided demo, I have reproduced this issue on Windows 10 and Ubuntu 18, on all the latest versions of the main channels.
Thank you for your contribution!

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop

TY, is this a fragmentation issue you would like to look at?

Flags: needinfo?(aethanyc)
Priority: -- → P3

I don't see any code that makes our multicol implementation handle break-inside:avoid, and this is maybe a duplication of bug 793686.

(Keep the NI as a reminder)

Webcompat Priority: --- → ?
See Also: → 1712093
Webcompat Priority: ? → P3
See Also: → 793686

This is fixed by bug 793686.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(aethanyc)
Resolution: --- → DUPLICATE
Component: Layout → Layout: Columns
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: