<?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>113519</bug_id>
          
          <creation_ts>2013-03-28 10:49:19 -0700</creation_ts>
          <short_desc>for flex items, percent margins and paddings should resolve against their respective dimension</short_desc>
          <delta_ts>2018-02-09 14:51:07 -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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Chang">tony</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cbiesinger</cc>
    
    <cc>claude.pache</cc>
    
    <cc>dholbert</cc>
    
    <cc>m.goleb+bugzilla</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>865625</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2013-03-28 10:49:19 -0700</bug_when>
    <thetext>Normally, margin top and margin bottom resolve against the width of the containing block, but the working group decided that for flex items, we should resolve against the height of the containing block.
http://lists.w3.org/Archives/Public/www-style/2013Mar/0688.html

This should be an easy change to make. See RenderFlexibleBox::computeChildMarginValue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920002</commentid>
    <comment_count>1</comment_count>
    <who name="Christian Biesinger">cbiesinger</who>
    <bug_when>2013-08-22 16:03:16 -0700</bug_when>
    <thetext>*** Bug 120003 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969294</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2014-01-17 15:45:58 -0800</bug_when>
    <thetext>*** Bug 126809 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398088</commentid>
    <comment_count>3</comment_count>
    <who name="Michał Gołębiowski-Owczarek">m.goleb+bugzilla</who>
    <bug_when>2018-02-09 14:23:39 -0800</bug_when>
    <thetext>Both Edge &amp; Firefox teams have committed to change to align with the Chrome/Safari behavior. The spec also got an update to mandate this behavior: https://drafts.csswg.org/css-grid-1/#item-margins

It sounds that this issue should be closed as &quot;Won&apos;t Fix&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398097</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2018-02-09 14:51:07 -0800</bug_when>
    <thetext>Right -- and the spec changed, too, such that WebKit is now correct according to the spec.

So really this could now be &quot;Resolved|Invalid&quot;, in the sense that WebKit is matching what the spec requires, i.e. the reported behavior is actually correct/intentional &amp; not a bug.

(At least, that&apos;d be the correct resolution if this were in the Mozilla/Firefox bug tracker -- I&apos;m not sure if the bug-resolution semantics are the same in WebKit&apos;s bug tracker.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>