<?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>16556</bug_id>
          
          <creation_ts>2007-12-21 08:02:59 -0800</creation_ts>
          <short_desc>Page div layers do not render in correct location. They end up overlapped.</short_desc>
          <delta_ts>2009-10-31 16:27:23 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>29792</dup_id>
          
          <bug_file_loc>http://msnpiki.msnfanatic.com/index.php/MSNP9:Changes</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="Adam Williams">mysticalosx</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ayg</cc>
    
    <cc>dglazkov</cc>
    
    <cc>info</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64954</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Williams">mysticalosx</who>
    <bug_when>2007-12-21 08:02:59 -0800</bug_when>
    <thetext>comparison browser was Firefox 2.x which did not exhibit the same behavior. Safari Version 3.0.4 (5523.10.6) also shows bad layout behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64963</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-21 09:49:37 -0800</bug_when>
    <thetext>Confirmed with a local debug build of WebKit r28925 with Safari 3.0.4 (523.12) on Mac OS X 10.4.11 (8S165).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64993</commentid>
    <comment_count>2</comment_count>
    <who name="Ingo Chao">info</who>
    <bug_when>2007-12-21 14:26:01 -0800</bug_when>
    <thetext>They do some heavy browser sniffing in wikibits.js and load KHTMLFixes.css, so
#column-content { margin-left: 0; } in KHTMLFixes.css erroneously overrides 
#column-content { margin-left: 200px; } in main.css </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65014</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-21 16:54:28 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; They do some heavy browser sniffing in wikibits.js and load KHTMLFixes.css, so
&gt; #column-content { margin-left: 0; } in KHTMLFixes.css erroneously overrides 
&gt; #column-content { margin-left: 200px; } in main.css 

Thanks, Ingo!  Based on this information, changing this to an evangelism bug.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65036</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-21 19:15:11 -0800</bug_when>
    <thetext>Here&apos;s the faulty is_khtml detection code:

var is_khtml = (navigator.vendor == &apos;KDE&apos; || ( document.childNodes &amp;&amp; !document.all &amp;&amp; !navigator.taintEnabled ));

Here&apos;s the code that writes the unwanted stylesheet:

// document.write special stylesheet links
if(typeof stylepath != &apos;undefined&apos; &amp;&amp; typeof skin != &apos;undefined&apos;) {
    if (is_opera_preseven) {
        document.write(&apos;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&apos;+stylepath+&apos;/&apos;+skin+&apos;/Opera6Fixes.css&quot;&gt;&apos;);
    } else if (is_opera_seven) {
        document.write(&apos;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&apos;+stylepath+&apos;/&apos;+skin+&apos;/Opera7Fixes.css&quot;&gt;&apos;);
    } else if (is_khtml) {
        document.write(&apos;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&apos;+stylepath+&apos;/&apos;+skin+&apos;/KHTMLFixes.css&quot;&gt;&apos;);
    }
}

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65037</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-21 19:24:30 -0800</bug_when>
    <thetext>Easy fix for wikibits.js:

-     } else if (is_khtml) {
+     } else if (is_khtml &amp;&amp; !is_safari) {

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159568</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2009-10-31 10:10:23 -0700</bug_when>
    <thetext>Fixed in bug 29792.

*** This bug has been marked as a duplicate of bug 29792 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>