<?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>168130</bug_id>
          
          <creation_ts>2017-02-10 10:35:32 -0800</creation_ts>
          <short_desc>flex-basis with flex-direction: column and justify-content: center causes elements to overflow parent</short_desc>
          <delta_ts>2022-07-15 11:26:15 -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>Safari 10</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>https://codepen.io/awayken/pen/wgazpb/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Miles Rausch">miles</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jarek</cc>
    
    <cc>miles</cc>
    
    <cc>PenguinMan98</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1275388</commentid>
    <comment_count>0</comment_count>
    <who name="Miles Rausch">miles</who>
    <bug_when>2017-02-10 10:35:32 -0800</bug_when>
    <thetext>When using justify-content: center and flex-direction: column, WebKit seems to miscalculate the height of the flex parent when some of the flex items have a flex-basis specified. The result is that some items can spill out of the box at the flex-start end.

I had a page where my heading (the first element in my flex container) was spilling up out of the parent and became white text on white background. It took a long time to figure out what exactly was going on. I see it in Safari 10.0.2 and Mobile Safari on iOS 10.2.

Test case: https://codepen.io/awayken/pen/wgazpb/ - in the problem browsers, Line 1 will be cut off as it overflows upward out of the &lt;body&gt;.

Work-around: either eliminate flex-basis on flex items or use justify-content: flex-start or justify-content: flex-end. There might be other justify-content values that work, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309858</commentid>
    <comment_count>1</comment_count>
    <who name="Joe">PenguinMan98</who>
    <bug_when>2017-05-17 15:17:04 -0700</bug_when>
    <thetext>I&apos;m not sure if it helps to post a &apos;me too&apos; but here goes. +1
Here&apos;s my code pen: https://codepen.io/anon/pen/rmZpOK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884121</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 11:26:15 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for both test cases. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>