<?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>156798</bug_id>
          
          <creation_ts>2016-04-20 11:01:06 -0700</creation_ts>
          <short_desc>Abspos flex item static position</short_desc>
          <delta_ts>2020-06-19 07:14:54 -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>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 9.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Greg Whitworth">gwhit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>dholbert</cc>
    
    <cc>dino</cc>
    
    <cc>gwhit</cc>
    
    <cc>jond</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>svillar</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1185460</commentid>
    <comment_count>0</comment_count>
    <who name="Greg Whitworth">gwhit</who>
    <bug_when>2016-04-20 11:01:06 -0700</bug_when>
    <thetext>The specification[1] was updated over a year ago to change the static position of an abspos item. To test this:

1. Open http://jsbin.com/xowulasica/edit?html,css,output
2. You should only see a blue square

Expected
---------------
You should only see a blue square

Actual
---------------
You see a blue and green square

[1] https://drafts.csswg.org/css-flexbox/#abspos-items</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200922</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-06-09 12:26:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/26724633&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1247409</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2016-11-02 11:34:58 -0700</bug_when>
    <thetext>Note: the testcase/expectations in comment 0 do not quite match the latest spec text here. Currently, the CSS Align spec basically says that the flex container&apos;s &quot;align-items&quot; value should be ignored for abspos children.  (And Greg&apos;s original testcase here depends on it being honored for abspos children.)  See notes on https://bugs.chromium.org/p/chromium/issues/detail?id=661662 for more details.


Here&apos;s a modified version of the original testcase, which uses &quot;align-self: center&quot; on all children, rather than &quot;align-items: center&quot; on the parent. This should still be a valid testcase for this bug.
 http://jsbin.com/yudabaxiyo/1/edit?html,css,output

Expected
---------------
You should only see a blue square</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1247509</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2016-11-02 15:07:31 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; This should still be a valid testcase for this bug.
&gt;  http://jsbin.com/yudabaxiyo/1/edit?html,css,output

FWIW, this testcase gives &quot;expected&quot; results in these recent versions of all other major web engines:
 * Chrome 54 (latest release)
 * Edge 14 (latest release)
 * Firefox Nightly 52 (2016-11-02), where this was only fixed in the past few days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1663974</commentid>
    <comment_count>4</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2020-06-18 13:29:20 -0700</bug_when>
    <thetext>Daniel I think this is working fine now. Could you verify?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664072</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2020-06-18 18:29:55 -0700</bug_when>
    <thetext>Yes, I think this has been fixed.

Safari 13.1 shows only a centered blue square (same as Firefox/Chrome)

Safari 10.1 shows a centered teal square and a top-right-aligned blue square (which I think/assume was the buggy rendering).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664073</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2020-06-18 18:30:40 -0700</bug_when>
    <thetext>(using the testcase that I&apos;d posted, which is http://jsbin.com/yudabaxiyo/1/edit?html,css,output )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664343</commentid>
    <comment_count>7</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2020-06-19 07:14:54 -0700</bug_when>
    <thetext>Closing this then. Thanks for reporting and verifying!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>