<?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>123795</bug_id>
          
          <creation_ts>2013-11-05 02:27:28 -0800</creation_ts>
          <short_desc>[CSS Regions] Percent-sized floats are sized relative to the size of the NamedFlowThread instead of the region they are rendered in</short_desc>
          <delta_ts>2022-07-12 17:19:14 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>AdobeTracked</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>124706</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihai Balan">mibalan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abucur</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mihnea</cc>
    
    <cc>stearns</cc>
    
    <cc>WebkitBugTracker</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>947094</commentid>
    <comment_count>0</comment_count>
      <attachid>216017</attachid>
    <who name="Mihai Balan">mibalan</who>
    <bug_when>2013-11-05 02:27:28 -0800</bug_when>
    <thetext>Created attachment 216017
HTML file highlighting the problem

When a float that has the size specified with percents is flowed through a region chain with multiple regions, the size of the float is computed relative to the sum of the sizes of the regions instead of the size of the region the float is rendered in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947114</commentid>
    <comment_count>1</comment_count>
    <who name="Mihai Balan">mibalan</who>
    <bug_when>2013-11-05 04:43:23 -0800</bug_when>
    <thetext>Must double check for width, too and non-floats, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947143</commentid>
    <comment_count>2</comment_count>
    <who name="Alan Stearns">stearns</who>
    <bug_when>2013-11-05 06:31:58 -0800</bug_when>
    <thetext>And we should check that when a float is fragmented, each fragment is sized relative to its individual region</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1009472</commentid>
    <comment_count>3</comment_count>
    <who name="Andrei Bucur">abucur</who>
    <bug_when>2014-05-15 00:16:09 -0700</bug_when>
    <thetext>I&apos;ve investigated this a bit and it&apos;s not very straightforward to implement. The problem here is that the top position of a float depends on the width of a float.

For example, a left float will be positioned alongside other left floats as long as it still fits. This means you first need to determine the width and if the float doesn&apos;t fit, reposition it below the other floats. This is doable with regions but it implies a multi-step layout and important changes in the code. Instead of computing the width and the positioning the float you:
- first need to estimate the top
- compute the width in the region at that top offset
- if it doesn&apos;t fit, move it below the other floats
- recompute the width at the new top</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882825</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 17:19:14 -0700</bug_when>
    <thetext>CSS Regions were removed in Bug 174978.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>216017</attachid>
            <date>2013-11-05 02:27:28 -0800</date>
            <delta_ts>2013-11-05 02:27:28 -0800</delta_ts>
            <desc>HTML file highlighting the problem</desc>
            <filename>floats-in-named-flow-010.html</filename>
            <type>text/html</type>
            <size>1781</size>
            <attacher name="Mihai Balan">mibalan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPGhlYWQ+CgkJPHRpdGxlPkNTUyBSZWdpb25zOiBmbG9h
dHMgaW4gYSBuYW1lZCBmbG93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