<?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>136361</bug_id>
          
          <creation_ts>2014-08-28 20:27:02 -0700</creation_ts>
          <short_desc>Absolute positioned block inside an relative positioned flexible box item has a quirk layout.</short_desc>
          <delta_ts>2022-09-20 10:34:34 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Guo Kai">badkaikai</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1032117</commentid>
    <comment_count>0</comment_count>
    <who name="Guo Kai">badkaikai</who>
    <bug_when>2014-08-28 20:27:02 -0700</bug_when>
    <thetext>Look the code below, the layout and position of div.icon-b element maybe wrong, it should be at the bottom of the div.right element. But when i change div.icon-a to position: relative, the layout looks right.

&lt;!DOCTYPE HTML&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    
&lt;div class=&quot;flexbox-wrapper&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;Left&lt;/div&gt;
    &lt;div class=&quot;right&quot;&gt;
        &lt;div class=&quot;icon-a&quot;&gt;A&lt;/div&gt;
        &lt;div class=&quot;icon-b&quot;&gt;B&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;style type=&quot;text/css&quot;&gt;
    * {
        margin: 0;
        padding: 0;
    }

    .flexbox-wrapper {
        display: -webkit-box;
        line-height: 100px;
        margin: 100px 0 0;
    }

    .left {
        -webkit-box-flex: 1;
        background: #eee;
    }

    .right {
        -webkit-box-flex: 1;
        background: #ccc;
        position: relative;
    }

    .right .icon-a {
        position: absolute;
        width: 20px;
        height: 20px;
        line-height: 20px;
        top: 0;
        left: 10px;
        background: red;
    }

    .right .icon-b {
        position: absolute;
        width: 20px;
        height: 20px;
        line-height: 20px;
        bottom: 0;
        left: 10px;
        background: blue;
    }
&lt;/style&gt;

&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032118</commentid>
    <comment_count>1</comment_count>
      <attachid>237336</attachid>
    <who name="Guo Kai">badkaikai</who>
    <bug_when>2014-08-28 20:28:33 -0700</bug_when>
    <thetext>Created attachment 237336
flexbox-test.html shows the quirk layout which i mentioned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1033134</commentid>
    <comment_count>2</comment_count>
    <who name="Guo Kai">badkaikai</who>
    <bug_when>2014-09-03 22:29:56 -0700</bug_when>
    <thetext>Anybody here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1033135</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-09-03 22:48:33 -0700</bug_when>
    <thetext>Yes but this is not high priority.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899867</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-20 10:27:45 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 16 and Safari Technology Preview 153 using attached test case and A &amp; B are not spread apart like the other browser (Chrome Canary 108 and Firefox Nightly 107).

Just wanted to share updated testing results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899876</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-20 10:34:34 -0700</bug_when>
    <thetext>By any change this is related to bug 210243?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>237336</attachid>
            <date>2014-08-28 20:28:33 -0700</date>
            <delta_ts>2014-08-28 20:28:33 -0700</delta_ts>
            <desc>flexbox-test.html shows the quirk layout which i mentioned.</desc>
            <filename>flexbox-test.html</filename>
            <type>text/html</type>
            <size>1058</size>
            <attacher name="Guo Kai">badkaikai</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0
PSJVVEYtOCI+CiAgICA8dGl0bGU+PC90aXRsZT4KPC9oZWFkPgo8Ym9keT4KICAgIAo8ZGl2IGNs
YXNzPSJmbGV4Ym94LXdyYXBwZXIiPgogICAgPGRpdiBjbGFzcz0ibGVmdCI+TGVmdDwvZGl2Pgog
ICAgPGRpdiBjbGFzcz0icmlnaHQiPgogICAgICAgIDxkaXYgY2xhc3M9Imljb24tYSI+QTwvZGl2
PgogICAgICAgIDxkaXYgY2xhc3M9Imljb24tYiI+QjwvZGl2PgogICAgPC9kaXY+CjwvZGl2PgoK
PHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgICogewogICAgICAgIG1hcmdpbjogMDsKICAgICAg
ICBwYWRkaW5nOiAwOwogICAgfQoKICAgIC5mbGV4Ym94LXdyYXBwZXIgewogICAgICAgIGRpc3Bs
YXk6IC13ZWJraXQtYm94OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxMDBweDsKICAgICAgICBtYXJn
aW46IDEwMHB4IDAgMDsKICAgIH0KCiAgICAubGVmdCB7CiAgICAgICAgLXdlYmtpdC1ib3gtZmxl
eDogMTsKICAgICAgICBiYWNrZ3JvdW5kOiAjZWVlOwogICAgfQoKICAgIC5yaWdodCB7CiAgICAg
ICAgLXdlYmtpdC1ib3gtZmxleDogMTsKICAgICAgICBiYWNrZ3JvdW5kOiAjY2NjOwogICAgICAg
IHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgIH0KCiAgICAucmlnaHQgLmljb24tYSB7CiAgICAgICAg
cG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHdpZHRoOiAyMHB4OwogICAgICAgIGhlaWdodDog
MjBweDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgICB0b3A6IDA7CiAgICAgICAg
bGVmdDogMTBweDsKICAgICAgICBiYWNrZ3JvdW5kOiByZWQ7CiAgICB9CgogICAgLnJpZ2h0IC5p
Y29uLWIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aWR0aDogMjBweDsK
ICAgICAgICBoZWlnaHQ6IDIwcHg7CiAgICAgICAgbGluZS1oZWlnaHQ6IDIwcHg7CiAgICAgICAg
Ym90dG9tOiAwOwogICAgICAgIGxlZnQ6IDEwcHg7CiAgICAgICAgYmFja2dyb3VuZDogYmx1ZTsK
ICAgIH0KPC9zdHlsZT4KCjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>