<?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>188252</bug_id>
          
          <creation_ts>2018-08-01 23:18:53 -0700</creation_ts>
          <short_desc>Flexbox auto width flex container wraps when not necessary</short_desc>
          <delta_ts>2020-08-18 10:12:27 -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>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roland Soos">roland</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jonlee</cc>
    
    <cc>sdemjanenko</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>1447192</commentid>
    <comment_count>0</comment_count>
    <who name="Roland Soos">roland</who>
    <bug_when>2018-08-01 23:18:53 -0700</bug_when>
    <thetext>I have a complicated flexbox layout where menu items are columns and aligned to the right in an auto width flexbox container. Also This container allow the items to wrap when there is not enough width available.

You can check the issue here: https://smartslider3.com/bugs/webkit/flexwrap/
Safari 11.1.2 and Tech preview Release 61 (Safari 12.0, WebKit 13606.1.25.1): https://i.imgur.com/xnrQyGE.png
Chrome and other browsers: https://i.imgur.com/bDVDk7j.png


I tried to compose the issue in JSFiddle, but I have no luck, it seems fine in Safari too: http://jsfiddle.net/j3Lau0td/1/


I think the issue is somehow related to value rounding. 
In the original example if you check .n2-ss-layer-row-inner element, which has the following CSS:
width: calc(100% + 30px);
margin: -15px;

You just need to change that to and it seems OK in Safari too.
width: calc(100% + 31px);
margin: -15px;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1452562</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-08-22 01:46:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/43597279&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681114</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Demjanenko">sdemjanenko</who>
    <bug_when>2020-08-18 10:12:27 -0700</bug_when>
    <thetext>I believe this bug is also causing an issue when using nested Grid component&apos;s in Material-UI: https://github.com/mui-org/material-ui/issues/17142

Is there any priority to address this bug?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>