Open
Bug 549114
Opened 15 years ago
Updated 2 years ago
Support column breaks part of CSS Fragmentation Module Level 3
Categories
(Core :: Layout, enhancement, P2)
Core
Layout
Tracking
()
REOPENED
Webcompat Priority | P3 |
People
(Reporter: william, Unassigned)
References
(Depends on 1 open bug, Blocks 5 open bugs, )
Details
(Keywords: css3, dev-doc-needed, DevAdvocacy, Whiteboard: [css3-multicol][DevRel:P1])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTBDFff GTB7.0
Build Identifier:
It doesn't appear that the column breaking part of the css3 spec is implemented: http://www.w3.org/TR/css3-multicol/#column-breaks
I am building a webapp that doesn't need to work in IE, and the lack of support for break-inside: avoid-column; is causing problems.
Reproducible: Always
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Component: General → Layout
Ever confirmed: true
Keywords: css3
QA Contact: general → layout
Version: unspecified → Trunk
Updated•15 years ago
|
Whiteboard: [css3-multicol]
This bug makes CSS3 multi-column layouts entirely useless for everything other than text. half implemented things don't help anybody!
Comment 2•14 years ago
|
||
The column flow also doesn't happen for tables. These should column break at rows across columns without additional tags.
As above the use is for a webapp and XULRunner application.
This could be addressed with colbreak inserted into the <tr>, but would probably be better if tables column flowed like text, as part of the standard flow.
Comment 4•13 years ago
|
||
richardigp's comment points to a workaround for some of this functionality until it is implemented:
<table><tr><td style="column-break-inside: avoid;">(non-breaking content here</td></tr></table>
Very definitely a hack, but should be forward-compatible unless a browser supports splitting table cells between columns without supporting column-break-inside.
Updated•13 years ago
|
Assignee: nobody → sjohnson
Updated•13 years ago
|
Blocks: css-multicol
I think we should probably do this as part of bug 132035, or at least do bug 132035 first with this bug in mind.
Depends on: 132035
Updated•13 years ago
|
Priority: -- → P2
+1
Also, instead of using:
<table><tr><td style="column-break-inside: avoid;">(non-breaking content here</td></tr></table>
Just use something like:
.column-fix {
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
-o-column-break-inside: avoid;
column-break-inside: avoid;
display: table;
}
Again, it's a hack, but it makes your HTML much cleaner.
Comment 7•13 years ago
|
||
It's probably bad manners to drill things but I am not sure this is part of bug 132035. The issue is tables in columns is a flow layout paradigm not a page issue (or am I wrong?). Therefore tables should flow across the columns to reflect the layout intention of the author. The real issue is should header rows repeat on columns but that is probably a little too "printy".
This is of concern to me/us because our XULRunner based ePub3 reader AZARDI (listed in XULRunner hall of honor) cannot present tables effectively in a controlled viewport/columns based presentation. Webkit handles table flow OK, although it too has some serious column flow issues. It is great to work with the native flow-power of the rendering engine rather than work around it.
Blocks: css-break-3
Please fix this ASAP. It is causing people not to use the multi column function. I am trying to use for a mega menu and while it looks great in Safari and Chrome, it fails miserably in FF.
Comment 9•12 years ago
|
||
This needs to be fixed ASAP. How can one even think of implementing CSS Columns without the ability to control breaks? Regrettably, this is becoming typical of Mozilla as of late - implementing things half-way and then leaving them there (this bug was filed in 2010!). Microsoft got it right in IE10 (and without prefixes!). Do you want me to switch back to IE?
page-break-inside:avoid just landed on nightly builds.
Depends on: page-break-inside
Comment 11•12 years ago
|
||
Excellent, thanks. Will this CSS avoid an element being broken up by a column as well as by a page?
Comment 12•12 years ago
|
||
Thanks!!!!
Comment 13•12 years ago
|
||
(In reply to EB from comment #12)
> Thanks!!!! I hope it works for columns as well as pages!!!
Comment 14•12 years ago
|
||
(In reply to EB from comment #13)
> (In reply to EB from comment #12)
> > Thanks!!!! I hope it works for columns as well as pages!!!
Just tested and it doesn't appear to work for columns :(
Comment 15•12 years ago
|
||
It does now - FF v20.0 :-)
Comment 16•11 years ago
|
||
Bug 775618 will alias some existing page-break-* properties. Does this fix (part of) the initial problem?
Comment 18•11 years ago
|
||
(In reply to Florian Bender from comment #17)
> Scott, still working on this?
Nope, I'm not working on this at the moment. Feel free to take it if you want. :)
Assignee: jaywir3 → nobody
Flags: needinfo?(jaywir3)
Comment 19•10 years ago
|
||
Temporary workaround is to add 'display:table' on element with 'page-break-inside' or just wrap it with table.
Comment 20•10 years ago
|
||
CSS multi-columns implementation is a mess between browsers. I came to this :
.column-fix {
break-inside: avoid-column;
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
-o-column-break-inside: avoid;
column-break-inside: avoid;
page-break-inside: avoid;
display: table;
}
But display:table workaround causes issues on other browsers where break-* properties are well supported. So I have to specifically load a stylesheet for Firefox. This puts FF on the same level as IE from a web developer perspective :'(
Updated•10 years ago
|
Keywords: dev-doc-needed
Comment 21•9 years ago
|
||
FWIW, to completely prevent column breaks in Firefox, I've found that using the combination:
display: inline-block;
width: 100%;
seems to work better as a workaround than `display: table`, which more often interferes with other styles (eg. padding).
Updated•9 years ago
|
Keywords: DevAdvocacy
Updated•9 years ago
|
Whiteboard: [css3-multicol] → [css3-multicol][DevRel:P1]
Updated•8 years ago
|
Flags: platform-rel?
Updated•8 years ago
|
platform-rel: --- → ?
Updated•8 years ago
|
platform-rel: ? → ---
Comment 22•6 years ago
|
||
The definition of the column breaks was moved to the CSS Fragmentation Module in the meantime. Therefore I updated the summary accordingly.
So, regarding the spec., I guess this bug covers the following properties and values:
break-before: avoid-column | column;
break-after: avoid-column | column;
break-inside: avoid-column;
Sebastian
Summary: Support Column Breaks part of CSS3 columns spec → Support column breaks part of CSS Fragmentation Module Level 3
Updated•5 years ago
|
See Also: → https://webcompat.com/issues/32873
Comment 23•3 years ago
|
||
Should this now be closed? Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=1722945
Updated•3 years ago
|
Webcompat Priority: --- → ?
Comment 24•3 years ago
|
||
We should double check if we need to alias with -webkit-
But as it is right now, that might be a duplicate of Bug 1722945
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 25•3 years ago
|
||
It is not, there's other stuff that is not yet implemented.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Updated•3 years ago
|
Comment 26•3 years ago
|
||
For now, we do not have evidences that there is a lot of webcompat pain.
so we are setting the webcompat priority to p3
Once the features are released, we might see more usage.
Webcompat Priority: ? → P3
Updated•2 years ago
|
Severity: normal → S3
Comment 27•2 years ago
|
||
Good day.
Seems like no solutions for multicolumns break (break-after: column, break-before: column) for this browser (Firefox) during more than 13 years :)
Maybe you can suggest other solution to implement Masonry Layout for FF with ability to control where exactly should items be placed.
You need to log in
before you can comment on or make changes to this bug.
Description
•