For those who are interested, here are the workarounds I found for this error.
I ended up modeling the "columns" property using the Flexbox layout. Here you can see an example: https://jsfiddle.net/tykvx3re/14/
This worked for me because my containers are the same width. For those who want to simulate the flow of text, you need to break the text into separate blocks with the same length. You can do it as follows:
CSS
.cssColumns { display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; width: 400px; height: 200px; flex-flow: column wrap; overflow: scroll; } .cssColumns span { margin-right: 15px; display: block; }
HTML:
<div class="cssColumns"> Some very long text.... </div>
Js:
$(function() { //Break the text into blocks, after the 20th char $(".cssColumns").html(("<span>" + $(".cssColumns").html().replace(/.{20}\S*\s+/g, "$&@").split(/\ s+@ /).join("</span><span>") + "</span>")); });
Here's how it stacks up: https://jsfiddle.net/tykvx3re/16/
source share