<?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>50413</bug_id>
          
          <creation_ts>2010-12-02 15:15:14 -0800</creation_ts>
          <short_desc>Strange 2px margin on &lt;button&gt;</short_desc>
          <delta_ts>2022-06-06 04:15:26 -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>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=238587</see_also>
          <bug_file_loc>http://www.webdevout.net/test?0T</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jacob Thomason">jacob</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>joepeck</cc>
    
    <cc>JoolsChadwick</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>316444</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Thomason">jacob</who>
    <bug_when>2010-12-02 15:15:14 -0800</bug_when>
    <thetext>I am not certain if the included url will remain at that address long enough, so, if not, it can be seen at...

http://dev.rentpost.com/managers (the form &lt;button&gt; at the bottom of the page; contact form)

You will notice that I&apos;ve overridden the margin on that element to force proper layout, but that shouldn&apos;t be necessary as margin was never defined and additionally, gecko doesn&apos;t render this mysterious margin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316454</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-02 15:29:56 -0800</bug_when>
    <thetext>Looks like 2px is the default margin for a button, data:text/html,&lt;button&gt;
However, where does this come from? Its tough to tell from the Web Inspector
as it doesn&apos;t look like it comes from any of the user agent stylesheets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951955</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2013-11-18 22:04:27 -0800</bug_when>
    <thetext>2px is an &apos;intrinsic margin&apos; supplied for form elements that have no width specified. This is WebKit-specific behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366803</commentid>
    <comment_count>3</comment_count>
    <who name="Jools">JoolsChadwick</who>
    <bug_when>2017-11-01 03:10:25 -0700</bug_when>
    <thetext>Is there any difference between a user agent style sheet value and an &quot;intrinsic&quot; value, other than it not appearing in inspectors? Why does the latter value type exist, other than to waste people&apos;s time? 

If this bug report didn&apos;t exist, how is anyone supposed to know that this is not a bug? If your inspector states that a user agent value of &quot;0em&quot; was computed as &quot;2px&quot;, why would anyone come to any conclusion other than &quot;webkit is bad at math&quot;?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>