<?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>76860</bug_id>
          
          <creation_ts>2012-01-23 14:13:42 -0800</creation_ts>
          <short_desc>Sub-elements with a percentage height ignore max-height on the parent element</short_desc>
          <delta_ts>2012-01-31 17:30:23 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>26559</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>0</everconfirmed>
          <reporter name="Silas Brill">brilliand+bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>540828</commentid>
    <comment_count>0</comment_count>
      <attachid>123617</attachid>
    <who name="Silas Brill">brilliand+bugzilla</who>
    <bug_when>2012-01-23 14:13:42 -0800</bug_when>
    <thetext>Created attachment 123617
Testcase for styles on html and body

Safari version: 5.1.2

When an element has both a height and a max-height set and a child element has its height set to 100%, the child element&apos;s height becomes equal to the value set for the parent element&apos;s height, without respecting the parent element&apos;s max-height.  However, the parent element&apos;s size still respects its max-height, resulting in the parent element and the child element being different sizes.

This bug behaves differently for the html and body elements than for divs, but is present in either case.  Other browsers (Firefox 8 and IE9) handle the html/body case correctly, but behave exactly as Webkit for the div case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>540834</commentid>
    <comment_count>1</comment_count>
      <attachid>123619</attachid>
    <who name="Silas Brill">brilliand+bugzilla</who>
    <bug_when>2012-01-23 14:24:41 -0800</bug_when>
    <thetext>Created attachment 123619
Testcase for styles on div elements

Turns out I was wrong about the situation being different for divs... I had made a mistake composing the testcase.  This testcase demonstrates exactly the same situation as the first one, that is, Webkit gets in wrong (in exactly the same way), whereas Firefox and IE get it right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>546680</commentid>
    <comment_count>2</comment_count>
    <who name="Silas Brill">brilliand+bugzilla</who>
    <bug_when>2012-01-31 17:30:23 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 26559 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>123617</attachid>
            <date>2012-01-23 14:13:42 -0800</date>
            <delta_ts>2012-01-23 14:13:42 -0800</delta_ts>
            <desc>Testcase for styles on html and body</desc>
            <filename>body.html</filename>
            <type>text/html</type>
            <size>372</size>
            <attacher name="Silas Brill">brilliand+bugzilla</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPGhlYWQ+CgkJPHRpdGxlPldlYmtpdCBidWc6IG1pbi1o
ZWlnaHQgYW5kIHBlcmNlbnRhZ2UgaGVpZ2h0IG9uIGNoaWxkPC90aXRsZT4KCQk8c3R5bGUgdHlw
ZT0idGV4dC9jc3MiPgoJCQlodG1sIHtoZWlnaHQ6MSU7bWluLWhlaWdodDoyMDBweDtib3JkZXI6
IDFweCBzb2xpZCBibHVlOyBiYWNrZ3JvdW5kOndoaXRlO30KCQkJYm9keSB7aGVpZ2h0OiAxMDAl
O2JhY2tncm91bmQ6cmVkfQoJCQlkaXYge2hlaWdodDogMTAwcHg7IHdpZHRoOiA1MHB4OyBtYXJn
aW46IGF1dG87IGJhY2tncm91bmQ6Z3JlZW47fQoJCTwvc3R5bGU+Cgk8L2hlYWQ+Cgk8Ym9keT4K
CQk8ZGl2PjwvZGl2PgoJPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>123619</attachid>
            <date>2012-01-23 14:24:41 -0800</date>
            <delta_ts>2012-01-23 14:24:41 -0800</delta_ts>
            <desc>Testcase for styles on div elements</desc>
            <filename>divs.html</filename>
            <type>text/html</type>
            <size>486</size>
            <attacher name="Silas Brill">brilliand+bugzilla</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPGhlYWQ+CgkJPHRpdGxlPldlYmtpdCBidWc6IG1pbi1o
ZWlnaHQgYW5kIHBlcmNlbnRhZ2UgaGVpZ2h0IG9uIGNoaWxkPC90aXRsZT4KCQk8c3R5bGUgdHlw
ZT0idGV4dC9jc3MiPgoJCQlib2R5IHt3aWR0aDogNDAwcHg7IGhlaWdodDogNDAwcHg7fQoJCQku
aHRtbCB7aGVpZ2h0OjElO21pbi1oZWlnaHQ6MjAwcHg7d2lkdGg6MSU7bWluLXdpZHRoOiAyMDBw
eDtiYWNrZ3JvdW5kOmJsdWV9CgkJCS5ib2R5IHtoZWlnaHQ6IDEwMCU7d2lkdGg6MTAwJTtiYWNr
Z3JvdW5kOnJlZH0KCQkJLmRpdiB7aGVpZ2h0OiAxMDBweDsgd2lkdGg6IDEwMHB4OyBtYXJnaW46
IGF1dG87IGJhY2tncm91bmQ6Z3JlZW47fQoJCTwvc3R5bGU+Cgk8L2hlYWQ+Cgk8Ym9keT4KCQk8
ZGl2IGNsYXNzPSJodG1sIj48ZGl2IGNsYXNzPSJib2R5Ij48ZGl2IGNsYXNzPSJkaXYiPjwvZGl2
PjwvZGl2PjwvZGl2PgoJPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>