<?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>53106</bug_id>
          
          <creation_ts>2011-01-25 11:48:55 -0800</creation_ts>
          <short_desc>CSS 2.1 failure: containing-block-032 - abspos children of an inline relpos element don&apos;t position correctly.</short_desc>
          <delta_ts>2011-03-14 14:54:17 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://test.csswg.org/suites/css2.1/20110111/html4/containing-block-032.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>47141</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tab Atkins">tabatkins</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>ojan</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>339795</commentid>
    <comment_count>0</comment_count>
    <who name="Tab Atkins">tabatkins</who>
    <bug_when>2011-01-25 11:48:55 -0800</bug_when>
    <thetext>According to &lt;http://www.w3.org/TR/CSS21/visudet.html#containing-block-details&gt;, when an inline LTR element is the containing block for an absolutely positioned element, the &apos;left&apos; and &apos;top&apos; properties use the left and top edges of the first box generated by the containing block, while the &apos;right&apos; and &apos;bottom&apos; properties use the right and bottom edges of the last box generated by the containing block.

In the linked test case (note: must have the Ahem font installed), the &quot;left&quot; edge is just to the left of &quot;B&quot;, while the &quot;right&quot; edge is just to the right of &quot;C&quot;.  This means that #topleft should cover B, #topright should cover A, #bottomleft should cover D, and #bottomright should cover C.

Instead, #topright is covering the upper space, and #bottomright is covering the bottom space.  By inspection, it appears that we&apos;re moving the &quot;right&quot; edge to be equal to the &quot;left&quot; edge, likely because we have a check somewhere that attempts to ensure that the &quot;right&quot; edge is never to the left of the &quot;left&quot; edge by setting them equivalent when that occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340040</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins">tabatkins</who>
    <bug_when>2011-01-25 17:28:39 -0800</bug_when>
    <thetext>We may be changing the spec here to make this behavior conformant.

But if it turns out to be easy to fix, go for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367230</commentid>
    <comment_count>2</comment_count>
    <who name="Tab Atkins">tabatkins</who>
    <bug_when>2011-03-14 14:25:43 -0700</bug_when>
    <thetext>The CSSWG resolved Issue 215 concerning this bug &lt;http://wiki.csswg.org/spec/css2.1#issue-215&gt; by making the containing block undefined in this case.

So, no change required!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367266</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-03-14 14:54:17 -0700</bug_when>
    <thetext>Not for CSS2.1 at least...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>