Open Bug 1840944 Opened 2 years ago Updated 20 days ago

Implement `break-before: column` and `break-after: column`

Categories

(Core :: Layout: Columns, enhancement)

enhancement

Tracking

()

People

(Reporter: dholbert, Assigned: TYLin)

References

(Blocks 8 open bugs, )

Details

(Keywords: dev-doc-needed, parity-chrome, parity-safari, Whiteboard: [platform-feature][webcompat:risk-moderate])

Attachments

(1 file)

This bug tracks implementation of break-before:column and break-after:column, as well as the associated avoid-column values.

Spec: https://drafts.csswg.org/css-break/#column-break-values

STR:

  1. Load testcase.

EXPECTED RESULTS:
There should be a column-break before every italic character, and a column-break after every bold character. Rendering should look like:

a  c  d  e  g
b        f  h
            i
            j

ACTUAL RESULTS:
We render all of the characters in the first column.

Chrome and WebKit produce expected results.

Note: I think this is the reason we fail these three WPT tests, which are testing baseline-alignment of multicol flex items, with forced column-breaks involved:
https://wpt.fyi/results/css/css-flexbox/alignment/flex-align-baseline-multicol-001.html
https://wpt.fyi/results/css/css-flexbox/alignment/flex-align-baseline-multicol-002.html
https://wpt.fyi/results/css/css-flexbox/alignment/flex-align-baseline-multicol-003.html

Severity: -- → S3

TYLin, I hope you don't mind if I assign this to you, to look at when cycles are available. Seems to be in your area of expertise, spanning multicol / fragmentation and flexbox. :)

Assignee: nobody → aethanyc

(In reply to Daniel Holbert [:dholbert] from comment #0)

Note: I think this is the reason we fail these three WPT tests, which are testing baseline-alignment of multicol flex items, with forced column-breaks involved:
https://wpt.fyi/results/css/css-flexbox/alignment/flex-align-baseline-multicol-001.html
https://wpt.fyi/results/css/css-flexbox/alignment/flex-align-baseline-multicol-002.html
https://wpt.fyi/results/css/css-flexbox/alignment/flex-align-baseline-multicol-003.html

We fail some analogous grid tests, for what looks like the same reason -- there are forced column-breaks, which we're ignoring, which make us fail these tests:
https://wpt.fyi/results/css/css-grid/alignment/grid-align-baseline-multicol-001.html
https://wpt.fyi/results/css/css-grid/alignment/grid-align-baseline-multicol-002.html
https://wpt.fyi/results/css/css-grid/alignment/grid-align-baseline-multicol-003.html

Depends on: 1887139
Whiteboard: webcompat:risk-moderate
Type: defect → enhancement
Blocks: 1887139
No longer depends on: 1887139
Blocks: 1940929
Whiteboard: webcompat:risk-moderate → [platform-feature][webcompat:risk-moderate]
Blocks: 2013663
Blocks: 2019804
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: