<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>70795</bug_id>
          
          <creation_ts>2011-10-24 19:33:36 -0700</creation_ts>
          <short_desc>Need to figure out how flexboxes interact with column breaks, page breaks, etc.</short_desc>
          <delta_ts>2012-08-28 14:06:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>62048</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>489845</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-10-24 19:33:36 -0700</bug_when>
    <thetext>http://dev.w3.org/csswg/css3-flexbox/#pagination</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>706709</commentid>
    <comment_count>1</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-08-28 14:06:23 -0700</bug_when>
    <thetext>12:24 PM &lt;TabAtkins&gt; ojan: Yes, there&apos;s an entire section in the spec marked as &quot;non-normative&quot; detailing exactly how we think flexbox pagination should work.  It&apos;s non-normative because we want feedback on it from implementors.
...
12:30 PM &lt;TabAtkins&gt; If the answer ends up being &quot;they&apos;re atomic for breaking purposes&quot;, that would be sad but acceptable.
12:30 PM &lt;TabAtkins&gt; ojan: Though, what happens when you try to print a webpage laid out using flexbox?
12:30 PM &lt;dhyatt&gt; that&apos;s my concern. i doubt anyone even knows. :)
12:30 PM &lt;dhyatt&gt; probably something terrible
12:31 PM &lt;ojan&gt; dhyatt: does CSS pagination and printing use the same logic?
12:34 PM &lt;dhyatt&gt; ojan: all pagination is sharing breaking logic right now
12:34 PM &lt;dhyatt&gt; ojan: what i&apos;m working on now is bringing columns/pages/regions painting and hit testing and that sort of thing even closer together also
12:34 PM &lt;dhyatt&gt; but for the purposes of a layout system like flex box or grid
12:35 PM &lt;dhyatt&gt; &quot;paginating&quot; you don&apos;t really have to think about regions/columns/pages
12:35 PM &lt;dhyatt&gt; you just care about &quot;breaks&quot;
12:35 PM &lt;ojan&gt; dhyatt: i see...making sure printing flexboxes works reasonably seems higher priority than CSS columns/pages IMO. i didn&apos;t realize it used the same logic.
12:36 PM &lt;dhyatt&gt; really the big thing to know
12:36 PM &lt;dhyatt&gt; is that you want to set your correct block progression position before laying out
12:36 PM &lt;dhyatt&gt; i.e., y position in horizontal text
12:36 PM &lt;dhyatt&gt; if you can&apos;t do that
12:36 PM &lt;dhyatt&gt; e.g., because flexing pushes you
12:36 PM &lt;dhyatt&gt; then you have to relayout
12:36 PM &lt;dhyatt&gt; because how you have to paginate may change
12:37 PM &lt;dhyatt&gt; flex boxes are probably very difficult to paginate (like tables)
12:38 PM &lt;dhyatt&gt; well i don&apos;t really get how flexing works
12:38 PM &lt;dhyatt&gt; like do you lay out unflexed and paginate?
12:38 PM &lt;dhyatt&gt; and then flex and re-paginate?
12:38 PM &lt;dhyatt&gt; that could get weird
12:38 PM &lt;TabAtkins&gt; dhyatt: Not *quite*.
12:39 PM &lt;TabAtkins&gt; I forget details now, but it tries to be as close to normal flex layout as possible, without being expensive or crazy.
12:40 PM &lt;dhyatt&gt; ojan: well the big thing to know is just that there&apos;s a relayout you need to do if your position moves in such a way that pagination has to be redone
12:40 PM &lt;dhyatt&gt; that and try to set the correct position in advance
12:40 PM &lt;dhyatt&gt; since if you do, pagination will just work.
12:40 PM &lt;TabAtkins&gt; And it has substantially different behavior for the four cases of row/column and single-line/multi-line, with multi-line columns being the craziest.
12:41 PM &lt;dhyatt&gt; TabAtkins: well it&apos;s cool you wrote something down at least! :)
12:41 PM &lt;ojan&gt; taking a quick look at the spec, i think it tries to set the correct position in advance
12:41 PM &lt;ojan&gt; assuming i understand what you mean by that :)
12:41 PM &lt;dhyatt&gt; yeah i just mean e.g., block layout makes a y-estimation for example
12:42 PM &lt;dhyatt&gt; and tries to lay out at the correct y position
12:42 PM &lt;dhyatt&gt; if it ends up being wrong and has to move
12:42 PM &lt;dhyatt&gt; then it will relayout
12:42 PM &lt;dhyatt&gt; because being paginated requires that
12:42 PM &lt;dhyatt&gt; markForPaginationRelayoutIfNeeded
12:42 PM &lt;dhyatt&gt; is the function that handles it
...
12:44 PM &lt;dhyatt&gt; ojan: i mean, the one thing i&apos;d suggest is we just make sure it doesn&apos;t go toes up
12:44 PM &lt;dhyatt&gt; ojan: since crashes would be bad
12:44 PM &lt;ojan&gt; dhyatt: yeah, we should at least add tests showing that we are doing something sane or insane
12:44 PM &lt;dhyatt&gt; for unflexing flex boxes
12:44 PM &lt;dhyatt&gt; as long as you place them as you go
12:44 PM &lt;dhyatt&gt; they should paginate correctly
12:44 PM &lt;ojan&gt; dhyatt: although, i expect our fuzzer would catch most crashes in this area
12:45 PM &lt;dhyatt&gt; for flexing it depends on if you relayout if you flex
12:45 PM &lt;dhyatt&gt; if you do, then they might kinda work too</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>