<?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>150445</bug_id>
          
          <creation_ts>2015-10-22 07:37:26 -0700</creation_ts>
          <short_desc>Flexbox - flex direction column slow layout performance</short_desc>
          <delta_ts>2025-03-04 21:08:37 -0800</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>Safari 9</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>168657</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=289072</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Bobertson">scottbobertson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>bernd.helzer</cc>
    
    <cc>eoconnor</cc>
    
    <cc>hyatt</cc>
    
    <cc>jonlee</cc>
    
    <cc>l1657572</cc>
    
    <cc>ljharb</cc>
    
    <cc>mike.sherov</cc>
    
    <cc>mozilla</cc>
    
    <cc>mrflix</cc>
    
    <cc>rik</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1135681</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Bobertson">scottbobertson</who>
    <bug_when>2015-10-22 07:37:26 -0700</bug_when>
    <thetext>Nested divs with &apos;display: flex&apos; and &apos;flex-direction: column&apos; have very slow performance in Safari.

At a depth of 18 divs with these CSS properties Safari takes a total of 6578ms to layout and paint the divs this time grows exponentially as the depth of divs increases. This same test performed on Chrome or Firefox takes 2ms.

Here is a demo of the problem. (open the console to see the results)

http://codepen.io/anon/pen/zvRKYN?editors=001</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135765</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-10-22 11:51:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/23222219&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259482</commentid>
    <comment_count>2</comment_count>
    <who name="James Seigel">mozilla</who>
    <bug_when>2016-12-13 12:01:58 -0800</bug_when>
    <thetext>Still seems to be a critical problem.  Definitely causes issues when nesting, or when products create deep nesting like react-native-web for example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1273894</commentid>
    <comment_count>3</comment_count>
    <who name="">l1657572</who>
    <bug_when>2017-02-07 00:20:11 -0800</bug_when>
    <thetext>I can confirm. I&apos;m currently using a Flexbox framework which renders great on Chrome and Firefox, but slows to a crawl on Safari. Major issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1281807</commentid>
    <comment_count>4</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2017-02-28 10:51:23 -0800</bug_when>
    <thetext>This is fixed with the latest flex box checkin in b168657.

*** This bug has been marked as a duplicate of bug 168657 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>