<?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>52373</bug_id>
          
          <creation_ts>2011-01-13 08:47:23 -0800</creation_ts>
          <short_desc>Incorrect containing block used for percentage height with block inside inline</short_desc>
          <delta_ts>2011-01-13 08:53:08 -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>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>29189</dup_id>
          
          <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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>333718</commentid>
    <comment_count>0</comment_count>
      <attachid>78815</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-13 08:47:23 -0800</bug_when>
    <thetext>Created attachment 78815
Testcase

The attached testcase, which Safari fails, and FF passes, shows an issue where we compute percentage heights incorrectly. The spec says that they should be computed relative to the height of the containing block &lt;http://www.w3.org/TR/CSS21/visudet.html#propdef-height&gt; but maybe we disagree on what the containing block is, because of anonymous blocks (since the parent is inline)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333719</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-13 08:50:37 -0800</bug_when>
    <thetext>I think the relevant section is
&lt;http://www.w3.org/TR/CSS21/visudet.html#containing-block-details&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333722</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-13 08:53:08 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 29189 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>78815</attachid>
            <date>2011-01-13 08:47:23 -0800</date>
            <delta_ts>2011-01-13 08:47:23 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>percentage-height-containing-block.html</filename>
            <type>text/html</type>
            <size>1209</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+CjxodG1sPgogICAgPGhlYWQ+CiAgICAg
ICAgPHRpdGxlPkNTUyBUZXN0OiBDb250YWluaW5nIGJsb2NrIGZvciByZWxhdGl2ZSBwb3NpdGlv
bmVkIGVsZW1lbnRzIGlzIG5lYXJlc3QgYmxvY2stbGV2ZWwgYW5jZXN0b3I8L3RpdGxlPgogICAg
ICAgIDxsaW5rIHJlbD0iYXV0aG9yIiB0aXRsZT0iTWljcm9zb2Z0IiBocmVmPSJodHRwOi8vd3d3
Lm1pY3Jvc29mdC5jb20vIj4KICAgICAgICA8bGluayByZWw9ImhlbHAiIGhyZWY9Imh0dHA6Ly93
d3cudzMub3JnL1RSL0NTUzIxL3Zpc3VkZXQuaHRtbCNjb250YWluaW5nLWJsb2NrLWRldGFpbHMi
PgogICAgICAgIDxtZXRhIG5hbWU9ImZsYWdzIiBjb250ZW50PSIiPgogICAgICAgIDxtZXRhIG5h
bWU9ImFzc2VydCIgY29udGVudD0iSWYgdGhlIGVsZW1lbnQncyBwb3NpdGlvbiBpcyAncmVsYXRp
dmUnLCB0aGUgY29udGFpbmluZyBibG9jayBpcyBmb3JtZWQgYnkgdGhlIGNvbnRlbnQgZWRnZSBv
ZiB0aGUgbmVhcmVzdCBibG9jay1sZXZlbCBhbmNlc3RvciBib3guIj4KICAgICAgICA8c3R5bGUg
dHlwZT0idGV4dC9jc3MiPgogICAgICAgICAgICBkaXYKICAgICAgICAgICAgewogICAgICAgICAg
ICAgICAgYmFja2dyb3VuZDogcmVkOwogICAgICAgICAgICAgICAgaGVpZ2h0OiAxMDBweDsKICAg
ICAgICAgICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICAgICAgfQogICAgICAgICAgICAKICAg
ICAgICAgICAgc3BhbiBzcGFuCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGJhY2tncm91
bmQ6IGdyZWVuOwogICAgICAgICAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgICAgICAgICAg
cG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAg
ICAgICAgIH0KICAgICAgICA8L3N0eWxlPgoKICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAgICAg
IDxwPlRlc3QgcGFzc2VzIGlmIHRoZXJlIGlzIG5vIHJlZCB2aXNpYmxlIG9uIHRoZSBwYWdlLjwv
cD4KICAgICAgICA8ZGl2PgogICAgICAgICAgICA8c3Bhbj5hZHNmCiAgICAgICAgICAgICAgICAg
PHNwYW4+PC9zcGFuPgogICAgICAgICAgICA8L3NwYW4+CiAgICAgICAgPC9kaXY+CgogICAgPC9i
b2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>