W3C home > Mailing lists > Public > www-style@w3.org > January 2014

Re: CSS Regions considered harmful (was: [css-regions] issue 16858 redux)

From: Johannes Wilm <johannes@fiduswriter.org>
Date: Thu, 23 Jan 2014 19:57:56 +0100
Message-ID: <CABkgm-TAe7HX0MNd8-Bb_2S70ZkVDbi1WaC+Ej1_B0xjxapiwg@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Brian Kardell <bkardell@gmail.com>, Håkon Wium Lie <howcome@opera.com>, Alan Stearns <stearns@adobe.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Jan 23, 2014 at 7:18 PM, L. David Baron <dbaron@dbaron.org> wrote:

> Also, to be clear:  I think it would be great for CSS to have a
> mechanism for reordering and changing the tree structure of its
> input, before that input reaches the layout system.  Would that
> address your use cases?
> What I don't want is the reordering after fragmentation happens,
> which requires the contortions of using a layout system designed to
> deal with content in a certain order and giving it the content in a
> different order.

What we would need is for different fragments of the same content to have
different parent elements (= they are not siblings). That way we can make
footnotes/sidenodes/endnotes flow out of the main flow. In combination with
contenteditable (and some javascript), this is especially useful. Without
CSS Regions and without the need to edit the content), I guess we could
have some javascript measure how much space the content takes up and then
try to cut it up and the right places, creating different elements for the
contents of each page and the contents of each footnote and then move them

As I understand it, the criticism of CSS Regions at least in part seems to
be that too many elements are created. Yet the end result would be that we
would have a lot more Javascript and extra DOM elements if CSS Regions are
not available, even if Håkon's spec is implemented (in case we want to do
something slightly more complex fx in the headers) or CSS overflow is
implemented, at least as long as fragments have to have the same parent

> -David
> --
> 𝄞   L. David Baron                         http://dbaron.org/   𝄂
> 𝄢   Mozilla                          https://www.mozilla.org/   𝄂
>              Before I built a wall I'd ask to know
>              What I was walling in or walling out,
>              And to whom I was like to give offense.
>                - Robert Frost, Mending Wall (1914)

Johannes Wilm
Fidus Writer
Received on Thursday, 23 January 2014 18:58:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:38 UTC