<?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>11688</bug_id>
          
          <creation_ts>2006-11-24 09:54:16 -0800</creation_ts>
          <short_desc>Inline !important CSS behaves wrong, specifically: &lt;hr&gt; margins</short_desc>
          <delta_ts>2006-11-24 11:51:47 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4128</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Alexei Svitkine">myrd</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44536</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei Svitkine">myrd</who>
    <bug_when>2006-11-24 09:54:16 -0800</bug_when>
    <thetext>In all modern browsers, except Safari (tested with 10.4.8&apos;s shipping version, and nightly WebKit r17840), the following will display some amount of margin around a &lt;hr&gt; tag:

&lt;hr style=&quot;margin:7 0 7 0 !important; margin:0&quot;&gt;

This acts in two ways. For browsers that understand !important, it applies the first margin, for everything else it applies the second styling. It appears that Safari handles !important incorrectly when it is inline.

This produces the following results: Opera, Firefox, etc all render it with the !important margin, meaning a top and bottom margin of 7px. WinIE renders it with the other margin of 0px, but since its default hr comes with non-compliant padding, it looks the same as Opera and Firefox.

Only in Safari, it behaves differently. That is, a 0px margin is applied, and therefore there is no margin at all around the &lt;hr&gt; because Safari doesn&apos;t have an extra implicit border on &lt;hr&gt; like WinIE.

This behaviour should be addressed to support inline !important, and therefore behave like Firefox and Opera.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44537</commentid>
    <comment_count>1</comment_count>
      <attachid>11622</attachid>
    <who name="Alexei Svitkine">myrd</who>
    <bug_when>2006-11-24 09:55:05 -0800</bug_when>
    <thetext>Created attachment 11622
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44522</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2006-11-24 11:51:47 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 4128 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11622</attachid>
            <date>2006-11-24 09:55:05 -0800</date>
            <delta_ts>2006-11-24 09:55:05 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>313</size>
            <attacher name="Alexei Svitkine">myrd</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiI+CjxodG1sPgo8aGVhZD4KCTx0aXRsZT5Ib3Jpem9udGFsIFJ1bGU8L3RpdGxlPgo8L2hl
YWQ+Cjxib2R5PgoKPGRpdiBzdHlsZT0id2lkdGg6MTUwcHg7IGJvcmRlcjpzb2xpZCAxcHggYmxh
Y2s7IHRleHQtYWxpZ246Y2VudGVyOyI+CnNkYWprYXNkamRzYWprZHNhamtzZAo8aHIgc3R5bGU9
Im1hcmdpbjo3IDAgNyAwICFpbXBvcnRhbnQ7IG1hcmdpbjowIj4Kc2Rhamthc2RqZHNhamtkc2Fq
a3NkCjwvZGl2PgoKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>