W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [css-page-floats] comments on Page Floats

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 17 Sep 2013 11:27:48 +0200
Message-ID: <21048.8340.657877.611918@gargle.gargle.HOWL>
To: MURAKAMI Shinyu <murakami@antenna.co.jp>
Cc: www-style@w3.org
Also sprach MURAKAMI Shinyu:

 > >  > <div style="margin-left: 3cm; margin-right: 3cm">
 > >  >   ...
 > >  >   <figure style="float: snap(0); width: 100%;">
 > >  >     ...
 > >  >   </figure>
 > >  > </div>
 > >  > 
 > >  > If snap(0) makes itself a page float conditionally,
 > >  > the width of the figure also will be changed?
 > >  > (When this figure is a page float, the 100% width is
 > >  > the column/page width and the margin-left/right
 > >  > of the div does not affect the width of the page float.)
 > > 
 > > Let's see. If the figure is in a multicol element, 100% refers to the
 > > column width -- this is the case both for page floats and other
 > > elements, so there should be no change.
 > 
 > When the figure is not a page float, the parent div is the 
 > containing block and the 100% refers to its width, i.e,
 > smaller than the colum width by div's margin-left/right.

Inside the multicol, the column is the containing block:

  Column boxes act as the containing block for their content.

  http://www.w3.org/TR/css3-multicol/

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 17 September 2013 09:28:34 UTC

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