<?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>70782</bug_id>
          
          <creation_ts>2011-10-24 16:59:15 -0700</creation_ts>
          <short_desc>Implement visibility:collapse for new flexboxes</short_desc>
          <delta_ts>2013-02-26 16:38:28 -0800</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>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>
          
          <blocked>62048</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>tabatkins</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>489780</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-10-24 16:59:15 -0700</bug_when>
    <thetext>The current spec text is &quot;Similar to table cells, flexbox items respond specially to the ‘collapse’ value of the ‘visibility’ property. When a flexbox item is set to ‘visibility: collapse;’, the item does not generate a box at all (identical to setting ‘display: none;’).&quot;

There&apos;s a bit of controversy over whether this is the right thing to do: http://lists.w3.org/Archives/Public/www-style/2011Oct/0136.html. If we could get away with changing visibility:collapse across the board without compat problems, that would clearly be best.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554292</commentid>
    <comment_count>1</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-02-10 12:24:35 -0800</bug_when>
    <thetext>The spec has changed to not mention visibility:collapse at all, which means that we should treat it as visibility:hidden. I expect this just works right now, but we should add some tests to verify.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632016</commentid>
    <comment_count>2</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-05-23 13:54:26 -0700</bug_when>
    <thetext>The spec has changed to require special visibility:collapse behavior. http://dev.w3.org/csswg/css3-flexbox/#visibility-collapse

I don&apos;t especially love this behavior, but I don&apos;t care enough to argue it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842504</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2013-02-26 16:38:28 -0800</bug_when>
    <thetext>Here&apos;s a test case:
http://plexode.com/u/#2J%222I%3E2H%3CEG8world29%3AfGHbrIr7*1459!16hello(E6JIf5!-webkit-flexr4px!solid!blue%3Br*!!)Jborder9!n)Hdiv!style%3Dn(H%2FdivI%0A2!%20~http://plexode.com/eval3/#ht=)Jdisplay95%3B6%0A7*14!visibility9collapse68G(7(

Basically, the middle div should have 0 width, but the height of the flexbox should be unchanged.  Currently, it creates width.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>