<?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>22881</bug_id>
          
          <creation_ts>2008-12-16 11:16:47 -0800</creation_ts>
          <short_desc>incorrect size computing of absolute element on window resize</short_desc>
          <delta_ts>2010-08-03 17:23:55 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max Barel">max</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102679</commentid>
    <comment_count>0</comment_count>
    <who name="Max Barel">max</who>
    <bug_when>2008-12-16 11:16:47 -0800</bug_when>
    <thetext>Hi,
Given an absolutely positioned element (say a div) with relative height, containing, say, an img. This img has height 100% and width auto. The img width compute ok. The div width shrink to the content size at load time, correct.
Now if one resize the window, height are correctly computed BUT the container width is not, staying at original size. Using &quot;overflow:hidden&quot; does not resolve the problem.
This is NOT the &quot;evangelism bug&quot; #15286. Absolute element should shrink to content width, after this one is computed.
See attached test case. Load the file and resize.

FireFox is also showing misbehavior, it does not even shrink width at first load, using the image natural width as content width.

This may be related to another, fixed, bug I reported: https://bugs.webkit.org/show_bug.cgi?id=20941</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102680</commentid>
    <comment_count>1</comment_count>
      <attachid>26057</attachid>
    <who name="Max Barel">max</who>
    <bug_when>2008-12-16 11:18:38 -0800</bug_when>
    <thetext>Created attachment 26057
test case, load and rezise the window.

File is XHTML but the bug shows the same as html.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>26057</attachid>
            <date>2008-12-16 11:18:38 -0800</date>
            <delta_ts>2008-12-16 11:18:38 -0800</delta_ts>
            <desc>test case, load and rezise the window.</desc>
            <filename>test.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>545</size>
            <attacher name="Max Barel">max</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIK
CSJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS1zdHJpY3QuZHRkIj4KCjxo
dG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiB4bWw6bGFuZz0iZW4iIGxh
bmc9ImVuIj4KPGhlYWQ+Cgk8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9
InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIvPgoKCTx0aXRsZT50ZXN0PC90aXRsZT4KCQo8L2hl
YWQ+Cgo8Ym9keSBzdHlsZT0iaGVpZ2h0OjEwMCU7IG1hcmdpbjowOyI+CjxkaXYgc3R5bGU9InBv
c2l0aW9uOmFic29sdXRlOyBoZWlnaHQ6NjAlOyB0b3A6NSU7IGxlZnQ6NSU7IGJvcmRlcjoxcHgg
c29saWQgc2lsdmVyOyI+Cgk8aW1nIHNyYz0iaHR0cDovL3dlYmtpdC5vcmcvaW1hZ2VzL2ljb24t
Z29sZC5wbmciIHdpZHRoPSIiIGhlaWdodD0iIiBzdHlsZT0iaGVpZ2h0OjEwMCU7IHdpZHRoOmF1
dG87IiAvPgo8L2Rpdj4KCjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>