ricardrobin/Regions.js — Issue #10: Some experience remarks (different issues)
Author: fiee
Created: 2012-01-19 14:15:32+00:00
State: open

I tried to simulate a magazine layout using regions. While it works rather good natively in Chrome 16 (text breaking options aren’t yet implemented, though), it’s rather limited with your script:

It’s really **slow** on some browsers; runtime increases exponentially (or the like) per region. On an iPad, 5 regions needed about 3s, 7 regions 8s and 9 regions up to 40s! Firefox was also slow, but not that bad.
I didn’t yet check deep enough if there is potential to optimize the iterations.

There are some **css formatting problems** that seem to stem from splitting the text into the regions: e.g. a ```:first-letter``` dropped cap appears not only at the beginning of the paragraph, but again at the beginning of every region where the paragraph continues.
e.g. in a big heading containing ```

Some emphasized text

```, the ```em``` part alone moved to a new region if there wasn’t enough space in the first one, generating a text order of "some text emphasized"!

But all in all it’s fascinating to be able to test regions at all outside of Chrome! Thank you!