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

RE: Floating a figure next to the preceding paragraph

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Fri, 13 Jan 2012 21:24:56 +0000
To: Christoph Päper <christoph.paeper@crissov.de>, "www-style@w3.org list" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928412DE21BC@TK5EX14MBXC214.redmond.corp.microsoft.com>
± 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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT