<?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>53140</bug_id>
          
          <creation_ts>2011-01-25 16:07:05 -0800</creation_ts>
          <short_desc>CSS 2.1 failure: dynamic-top-change-005 fails</short_desc>
          <delta_ts>2012-02-19 02:58:42 -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>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>69210</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>
          <dependson>68149</dependson>
    
    <dependson>69210</dependson>
          <blocked>47141</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Robert Hogan">robert</assigned_to>
          <cc>hyatt</cc>
    
    <cc>robert</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tabatkins</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>339999</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-25 16:07:05 -0800</bug_when>
    <thetext>http://test.csswg.org/suites/css2.1/20110111/html4/dynamic-top-change-005.htm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340001</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-25 16:15:05 -0800</bug_when>
    <thetext>Maybe we get containing block wrong for relpos inline inside relpos inline?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340003</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-25 16:17:41 -0800</bug_when>
    <thetext>We&apos;re also failing to re-layout on the dynamic change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340308</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-26 09:32:51 -0800</bug_when>
    <thetext>Part of the issue is with top: inherit not causing layout when the inherited value changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340311</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-26 09:33:58 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Part of the issue is with top: inherit not causing layout when the inherited value changes.

This issue seems fixed on TOT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>469197</commentid>
    <comment_count>5</comment_count>
      <attachid>107799</attachid>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-09-18 15:11:13 -0700</bug_when>
    <thetext>Created attachment 107799
Reduction

This is a reduction of the issue, though I&apos;m not 100% sure it is an issue.

dynamic-top-change-005 expects a relatively positioned originally inlined block-display child of a relatively positioned inline parent to render relative to the parent. So in the case of the reduction, it should render 75px relative to the top of the view. Firefox does this, but WebKit and Opera render 25px relative to the top of the view.

The reason WebKit does this is because the parent and child are in fact sibling render layers rather than parent and child, which is a result I guess of handling a block inside an inline flow. 

So is this an wanted side-effect of the &apos;All in-flow children of an inline flow must be inlines.&apos; rule, or is the test wrong-headed in the first place?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>469199</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-09-18 15:34:10 -0700</bug_when>
    <thetext>It really does look like the test expects the relpos block to offset 50px from the inline parent rather than the nearest containing block, which is the &apos;grandparent&apos;. Is that really the expected behaviour of a relatively positioned block?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>475624</commentid>
    <comment_count>7</comment_count>
      <attachid>109192</attachid>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-09-29 12:59:53 -0700</bug_when>
    <thetext>Created attachment 109192
Easier to understand reduction

This makes the issue (as I see it) easier to see - there is no red if the relpos inline block calculates its offset from the relpos inline parent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559892</commentid>
    <comment_count>8</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2012-02-19 02:58:42 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 69210 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>107799</attachid>
            <date>2011-09-18 15:11:13 -0700</date>
            <delta_ts>2011-09-18 15:11:13 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>relativeparentandchild.htm</filename>
            <type>text/html</type>
            <size>395</size>
            <attacher name="Robert Hogan">robert</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+CjxodG1sPgogPGhlYWQ+CiAgPHN0eWxl
IHR5cGU9InRleHQvY3NzIj4KICAgICNwYXJlbnQgeyBwb3NpdGlvbjogcmVsYXRpdmU7IHRvcDog
NTBweDt9CiAgICAjcmVkIHsgcG9zaXRpb246IHJlbGF0aXZlOyB0b3A6IDI1cHg7IGJhY2tncm91
bmQ6IHJlZDsgZGlzcGxheTogYmxvY2s7ICB3aWR0aDogMTAwcHg7IGhlaWdodDogMTAwcHg7fQog
IDwvc3R5bGU+CiA8L2hlYWQ+CiA8Ym9keT4KICAgICA8c3BhbiBpZD0icGFyZW50Ij4KICAgICAg
IDxzcGFuIGlkPSJyZWQiPjwvc3Bhbj4KICAgICA8L3NwYW4+CiA8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>109192</attachid>
            <date>2011-09-29 12:59:53 -0700</date>
            <delta_ts>2011-09-29 12:59:53 -0700</delta_ts>
            <desc>Easier to understand reduction</desc>
            <filename>bug53140.html</filename>
            <type>text/html</type>
            <size>780</size>
            <attacher name="Robert Hogan">robert</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+CjxodG1sPgogPGhlYWQ+CiAgPHN0eWxl
IHR5cGU9InRleHQvY3NzIj4KICAgICNncmVlbiB7IHBvc2l0aW9uOiBhYnNvbHV0ZTsgdG9wOiA3
NXB4OyBiYWNrZ3JvdW5kOiBncmVlbjsgd2lkdGg6IDEwMHB4OyBoZWlnaHQ6IDEwMHB4O30KICA8
L3N0eWxlPgogPC9oZWFkPgogPGJvZHk+CiAgICBJZiB0aGVyZSBpcyBubyByZWQsIHRoZSByZWQg
cmVscG9zIGJsb2NrIGlzIGNhbGN1bGF0aW5nIGl0cyBvZmZzZXQgZnJvbSBpdHMgcmVscG9zIGlu
bGluZSBwYXJlbnQuCiAgICA8ZGl2IGlkPSJ0b3AiIHN0eWxlPSJwb3NpdGlvbjogYWJzb2x1dGU7
IHRvcDogMDsiPgogICAgIDxzcGFuIGlkPSJwYXJlbnQiIHN0eWxlPSJwb3NpdGlvbjogcmVsYXRp
dmU7IHRvcDogNTBweCI+CiAgICAgICAgPCEtLSBDU1MgVGVzdCBzdWl0ZSBleHBlY3RzIHRoaXMg
YmxvY2sgdG8gb2Zmc2V0IDI1cHggZnJvbSB0aGUgcmVsYXRpdmUgaW5saW5lIGFib3ZlLCBnaXZp
bmcgYSB0b3RhbCBvZmZzZXQgb2YgNzVweC0tPgogICAgICAgPGRpdiBpZD0icmVkIiBzdHlsZT0i
cG9zaXRpb246IHJlbGF0aXZlOyB0b3A6IDI1cHg7IGJhY2tncm91bmQ6IHJlZDsgd2lkdGg6IDEw
MHB4OyBoZWlnaHQ6IDEwMHB4OyI+PC9kaXY+IAogICAgIDwvc3Bhbj4KICAgIDwvZGl2PgogICAg
PGRpdiBpZD0iZ3JlZW4iPjwvZGl2PgogPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>