W3C home > Mailing lists > Public > www-style@w3.org > December 2012

[css3-regions] different events, speed boost when using many regions

From: Johannes Wilm <johannes.wilm@sourcefabric.org>
Date: Tue, 18 Dec 2012 13:45:47 -0300
Message-ID: <CAJYMernHtiPF86bko5wkg5NbuM9cLoWtpxFTcnGxN=zPP5Yt9w@mail.gmail.com>
To: www-style@w3.org
Hey,
I am currently working on http://BookJS.net where we use CSS Regions to
make book layout. I've been working on this since July, and it relied on
the Webkit implementation of CSS Regions to make everything work.

You can find a current demo of a very simple editor which reflows text and
footnotes here: http://sourcefabric.github.com/BookJS/test.html

Now when documents get longer, things slow down considerably. An important
reason for that is that I have to listen to the regionlayoutupdate event
and then check for everything else manually -- have footnoted moved to
another page, do new pages need to be added (or removed), etc. .

It would therefore be nice to instead have several different events:

-- One event for when a certain node moved from one region to another.
-- One event for when new regions are needed or two many (change on
firstEmptyRegionIndex and/or overset)
-- One event if there is any change to the contents of a given flow, the
way the current regionlayoutupdate event works.

-- 
Johannes Wilm
Booktype Developer
+1 520 399 8880
Received on Tuesday, 18 December 2012 16:46:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT