<?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>88390</bug_id>
          
          <creation_ts>2012-06-05 20:34:54 -0700</creation_ts>
          <short_desc>Can&apos;t justify content when only child of flex container is a text node</short_desc>
          <delta_ts>2012-06-13 13:52:57 -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>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          <dependson>88443</dependson>
          <blocked>62048</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric">ericbidelman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ojan</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>642122</commentid>
    <comment_count>0</comment_count>
    <who name="Eric">ericbidelman</who>
    <bug_when>2012-06-05 20:34:54 -0700</bug_when>
    <thetext>-webkit-justify-conten doesn&apos;t do anything. See attached. The text is the only
child of the parent &lt;div&gt; (flex container) and it should be centered vert/horiztonally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642123</commentid>
    <comment_count>1</comment_count>
      <attachid>145921</attachid>
    <who name="Eric">ericbidelman</who>
    <bug_when>2012-06-05 20:35:18 -0700</bug_when>
    <thetext>Created attachment 145921
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642133</commentid>
    <comment_count>2</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-06-05 20:55:18 -0700</bug_when>
    <thetext>Looks like it might have been a renaming regression as well. Changing the test-case to the old names makes the text center on Chrome 21.0.1155.2 (Official Build 139341) dev.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642546</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-06-06 09:44:41 -0700</bug_when>
    <thetext>Ah, this is because of the change in the initial value of flex.  Since the initial value is 1, the text stretches to take all the space and there&apos;s no room for justify-content.

This was brought up on the spec mailing list as to why we shouldn&apos;t have flexing by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>648432</commentid>
    <comment_count>4</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-06-13 13:52:57 -0700</bug_when>
    <thetext>This works for me now on Chrome Canary.  Looks like bug 88443 landing fixed this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>145921</attachid>
            <date>2012-06-05 20:35:18 -0700</date>
            <delta_ts>2012-06-05 20:35:18 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>228</size>
            <attacher name="Eric">ericbidelman</attacher>
            
              <data encoding="base64">PHN0eWxlPgpkaXYgewoJZGlzcGxheTogLXdlYmtpdC1mbGV4OwoJYm9yZGVyOiAxcHggc29saWQg
cmVkOwoJaGVpZ2h0OiAyMDBweDsKCXdpZHRoOiA1MDBweDsKCS13ZWJraXQtanVzdGlmeS1jb250
ZW50OiBjZW50ZXI7CiAgLXdlYmtpdC1hbGlnbi1pdGVtczogY2VudGVyOwp9Cjwvc3R5bGU+Cjxk
aXY+SSBzaG91bGQgYmUgdmVydGljYWxseSBhbmQgaG9yaXpvbnRhbGx5IGNlbnRlcmVkPC9kaXY+
</data>

          </attachment>
      

    </bug>

</bugzilla>