<?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>15286</bug_id>
          
          <creation_ts>2007-09-26 08:00:32 -0700</creation_ts>
          <short_desc>position:absolute causes div width to collapse</short_desc>
          <delta_ts>2020-10-23 13:37:46 -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>Evangelism</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.suberic.net/pooka/screenshot.html</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="Anantha Keesara">anantha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jensimmons</cc>
    
    <cc>mitz</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57074</commentid>
    <comment_count>0</comment_count>
    <who name="Anantha Keesara">anantha</who>
    <bug_when>2007-09-26 08:00:32 -0700</bug_when>
    <thetext>Specifying a style &quot;position:absolute&quot; on a div in Safari causes its width to collapse. FF and IE both keep the div width at 100% by default even when specifying absolute position.

http://help.improve.safari.googlepages.com/absolute_width_collapse_1.html

Another testcase:

http://help.improve.safari.googlepages.com/absolute_width_collapse_2.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57080</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-09-26 08:41:35 -0700</bug_when>
    <thetext>Looks like bug 11946 again (see also bug 15272).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73136</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-03-09 13:31:54 -0700</bug_when>
    <thetext>It isn&apos;t a bug. Webkit and Firefox 3 correctly resolves width for position: absolute using &quot;shrink to fit&quot; method: 

&quot;Calculation of the shrink-to-fit width is similar to calculating the width of a table cell using the automatic table layout algorithm. Roughly: calculate the preferred width by formatting the content without breaking lines other than where explicit line breaks occur, and also calculate the preferred minimum width, e.g., by trying all possible line breaks. [...]

Then the shrink-to-fit width is: min(max(preferred minimum width, available width), preferred width).&quot;
[http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width]

Confirmed as an evangelism bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>