Column-fill: auto doesn't fill as expected, content ends up in one column
Categories
(Core :: Layout: Columns, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: bz, Assigned: TYLin)
References
Details
Attachments
(4 files)
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
(In reply to David Baron :dbaron: 🏴 ⌚UTC-7 (if account gets disabled due to email bounces, ask a bugzilla admin to reenable it) from comment #9)
- Making 'auto' height of a multicol do balancing is probably the more
expected behavior from a layout perspective
CSS Working Group decided to update the spec that column-fill: auto
balances an unconstrained container. https://github.com/w3c/csswg-drafts/issues/3224#issuecomment-468089503
However, for the reporter's test case in comment 0, there's max-height: 500px;
. So it's still considered as a "constrained" container. Firefox still behaves as expected.
Comment 14•6 years ago
|
||
with 'max-height: 200px':
http://www.gtalbot.org/BugzillaSection/Bug1348839-column-fill-auto-content-1column.html
In this test, the line box height should be exactly 20px. So, content should fill 10 lines in the first column before starting to fill the 2nd column... assuming there is enough content (text) to fill 10 lines. Reducing width of viewport can do that.
with 'max-height: 100px':
http://www.gtalbot.org/BugzillaSection/Bug1348839-column-fill-auto-content-1column-002.html
In this 002 test, the line box height should also be exactly 20px. So, content should fill 5 lines in the first column before starting to fill the 2nd column.
I think Firefox 60.6.0 ESR renders those tests correctly, precisely and as expected.
Not so in my opinion with Chromium 72.0.3626.122, Chromium 75.0.3738.0 and Epiphany 3.31.90-8061c1929 (WebKitGTK 2.24.0).
I tried those 2 tests with a 2 days old nightly build of Firefox and the rendering was incorrect. There is a problem with today's nightly build, so I could not check.
Comment 15•6 years ago
|
||
I tried those 2 tests with a 2 days old nightly build of Firefox and
the rendering was incorrect. There is a problem with today's nightly build,
so I could not check.
I had a corrupted profile.
I just tried those 2 tests with Firefox 68.0a1 buildID=20190322164604 and I think Firefox 68.0a1 buildID=20190322164604 renders those 2 tests correctly, precisely and as expected.
Assignee | ||
Comment 16•6 years ago
|
||
A reminder to myself to look at the test cases because they are not rendered as expected if layout.css.column-span.enabled=true
.
Comment 17•6 years ago
|
||
I have been developing and working on tests referencing this bug report:
http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/columnfill-auto-max-height-001.html
(Ahem font required; available from http://www.w3.org/Style/CSS/Test/Fonts/Ahem/ )
http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/columnfill-auto-max-height-002.html
(Ahem font required; available from http://www.w3.org/Style/CSS/Test/Fonts/Ahem/ )
Reference file:
http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/reference/ref-filled-green-100px-square.xht
and other tests that I am developing.
Next month, in April 2019 (because I am too busy these days), I expect
a) to use those tests to file a bug report over at chromium
project ( bugs.chromium.org/p/chromium/issues/ ) and then
b) to github-submit them to web-platform-tests repository.
Assignee | ||
Comment 18•6 years ago
|
||
Gérard, if you have a chance to add the two tests in comment 17 to web-platfrom-tests and Firefox is having any issue rendering them at that time, please file a new bug. Thanks! (Firefox Nightly 2019-05-17 renders the two tests correctly with or without layout.css.column-span.enabled
)
Also, when I wrote comment 16, the reporter's test case (from comment 7) rendered incorrectly with layout.css.column-span.enabled=true
. Luckily, bug 1411422 fixed it. I'm going to add a reftest to ensure we won't regress it.
Assignee | ||
Comment 19•6 years ago
|
||
This reftest renders correctly since bug 1411422 is landed.
Comment 20•6 years ago
|
||
Gérard, if you have a chance to add the two tests
in comment 17 to web-platfrom-tests
I forgot about this and about a) and b) in comment 17. I have been busy or very busy in the last 2 months. But this time, I wrote down comment 17 in my to-do-list. I will eventually get to it.
Comment 21•6 years ago
|
||
The correspondent bug report (with almost identical test) over at chromium project was:
Issue 223072: CSS Multi column: Max-height is ignored
https://bugs.chromium.org/p/chromium/issues/detail?id=223072
and it was resolved 3½ years ago. I will eventually file another bug report over there.
Updated•6 years ago
|
Comment 22•5 years ago
|
||
Comment 25•5 years ago
|
||
bugherder |
Comment 27•5 years ago
|
||
http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/columnfill-auto-max-height-001.html
http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/columnfill-auto-max-height-002.html
b) to github-submit them to web-platform-tests repository.
Done:
https://github.com/web-platform-tests/wpt/pull/17018/
Now, it's a matter of waiting for review and approval.
Comment 28•5 years ago
|
||
Both tests have been approved.
a) to use those tests to file a bug report over at chromium
project ( bugs.chromium.org/p/chromium/issues/ )
Done:
Issue 967329: Non-auto max-height doesn't prevent forcing of column balancing
https://bugs.chromium.org/p/chromium/issues/detail?id=967329
Assignee | ||
Comment 29•5 years ago
|
||
Gérard, thank you for adding these tests.
Description
•