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

Re: [css-page-floats] The 'clear' values are backwards

From: Johannes Wilm <johanneswilm@gmail.com>
Date: Tue, 26 Jan 2016 02:05:26 +0100
Message-ID: <CABkgm-TPq99SySNB5qgFh9RS=9Leea6qfhuav605jK22StX4_Q@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>, fantasai <fantasai.lists@inkedblade.net>
After a small conversation offlist: We seem to really have been in
agreement. We meant the same thing, we just used different words for it.

So the conclusion is:

If we have three floats rights after oneanother where the first float is
placed on page one. And the second float has the clear property set so that
it will be placed on page two (and not page one), then also float three
(which doesn't have the clear property set) will be placed on page 2 (or
later if there is not enough space on page 2). Float three will therefore
not be placed on page one, even though there would be enough space for it
there. We will make sure that the wording ensures that. This is also what
inline floats do, so pagefloats are no exceptions.

On Tue, Jan 26, 2016 at 12:05 AM, Tab Atkins Jr. <jackalmage@gmail.com>
wrote:

> On Mon, Jan 25, 2016 at 2:55 PM, Johannes Wilm <johanneswilm@gmail.com>
> wrote:
> > On Mon, Jan 25, 2016 at 10:26 PM, Tab Atkins Jr. <jackalmage@gmail.com>
> > wrote:
> >> On Mon, Jan 25, 2016 at 12:05 PM, Johannes Wilm <johanneswilm@gmail.com
> >
> >> wrote:
> >> > Say you have three top page floats right after oneanother at the start
> >> > of a
> >> > document. You want the first page float to be on a page with no other
> >> > page
> >> > floats and the subsequent two to be on the second page. How would you
> go
> >> > about specifying the clear values for the three floats for that to
> >> > happen
> >> > according to your model?
> >>
> >> Note: this isn't "our model". It's the spec's current model, before
> >> page floats are introduced.
> >
> > Yeah well, current floats cannot move things to new pages. So the page
> float
> > spec will have to try to reinterpret what "clearing" means in the
> context of
> > page floats, at least to some extend, and I'm trying to figure out how
> you
> > guys would think is the most natural way of transferring what clear does
> > today in a context of page floats.
>
> We don't have to, and shouldn't, reinterpret anything. ^_^  Just
> translate the concepts over directly, and then add new functionality
> as required.
>
> > As you know, there is a general argument to be made that page floats
> could
> > possibly live better under a different property name because for some
> > aspects page floats will have to work differently. This could possibly be
> > another such aspect.
> >
> > If there is no good way of saying
> >
> > "I want this one float to be the first float on a new page and all the
> > following floats to follow it on that page or subsequent pages,
> depending on
> > availability of space"
> >
> > or alternatively
> >
> > "I want this float to be the last on this page and all subsequent floats
> to
> > be put on the next and following pages, depending on availability of
> space"
> >
> > then I think we need a way of specifying that.
> >
> > Any suggestions for what that could look like?
>
> Not off the top of my head, but I believe you that it's a reasonable
> use-case.  Maybe a clear-after property?
>
> ~TJ
>



-- 
Johannes Wilm
http://www.johanneswilm.org
tel US: +1 (520) 399 8880
tel NO: +47 94109013
tel DE: +49 176 370 18082
Received on Tuesday, 26 January 2016 01:05:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:34 UTC