RE: Floating a figure next to the preceding paragraph

± From: Christoph Päper [mailto:christoph.paeper@crissov.de]
± Sent: Friday, January 13, 2012 4:07 AM
± 
± Maybe Regions could do it with few additions:
± 
±   p {
±     position: relative;
±     padding-right: 20em;
±     flow-flush: figures; /* force display of figures that came earlier */
±   }
±   figure {
±     flow-into: figures;
±   }
±   p::after {
±     flow-from: figures;
±     position: absolute; top: 0; right: 0;
±     width: 18em;
±   }
± 

It's an interesting idea. The concept of "flow-flush" however doesn't work naturally with named flows. Once something is in a named flow, comparing its source order with something outside of named flow may or may not make sense. It might work, but I would be very careful planning for that.

**if** that worked (or if each figure used a unique flow name), you could in fact do something like this (and you don't need absolute positioning):

  p#caption42 {
    flow-from: figure42;
    float:right;
  }
  #figure42 {
    flow-into: figure42;
  }

Alex

Received on Friday, 13 January 2012 21:58:38 UTC