<?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>26355</bug_id>
          
          <creation_ts>2009-06-12 14:29:39 -0700</creation_ts>
          <short_desc>with insufficient room for padding, button label is not centered</short_desc>
          <delta_ts>2009-06-12 14:33:49 -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>All</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jungshik Shin">jshin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125529</commentid>
    <comment_count>0</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2009-06-12 14:29:39 -0700</bug_when>
    <thetext>&lt;input type=button style=&quot;width:25px; font-size: 18px&quot; value=&quot;A&quot;&gt;&lt;/input&gt;
&lt;input type=button style=&quot;width:25px; font-size: 18px; padding: 0px;&quot; value=&quot;A&quot;&gt;&lt;/input&gt;


On Mac OS X, two buttons above are rendered identically. In both cases, &apos;A&apos; is centered in the button. 

On Windows (Safari 4 and Chrome), &apos;A&apos; is not centered but shifted to the right in the first button as if left-padding is applied first without considering whether there&apos;s enough room for &apos;right-padding. 

The UA stylesheet for input button has &apos;padding-left&apos; and &apos;padding-right&apos; set to 6px.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125532</commentid>
    <comment_count>1</comment_count>
      <attachid>31213</attachid>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2009-06-12 14:33:49 -0700</bug_when>
    <thetext>Created attachment 31213
test

the first button : width: 25px, font-size:18px
the 2nd button: width: 25px, font-size:18px, padding:0
the 3rd button : width:40px, font-size: 18px</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>31213</attachid>
            <date>2009-06-12 14:33:49 -0700</date>
            <delta_ts>2009-06-12 14:33:49 -0700</delta_ts>
            <desc>test</desc>
            <filename>button.html</filename>
            <type>text/html</type>
            <size>323</size>
            <attacher name="Jungshik Shin">jshin</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPjx0aXRsZT5idXR0b24gdGVzdDwvdGl0bGU+CjwvaGVhZD4KPGJvZHk+Cjxp
bnB1dCB0eXBlPWJ1dHRvbiBzdHlsZT0id2lkdGg6MjVweDsgZm9udC1zaXplOiAxOHB4IiB2YWx1
ZT0iQSI+PC9pbnB1dD4KPGlucHV0IHR5cGU9YnV0dG9uIHN0eWxlPSJ3aWR0aDoyNXB4OyBmb250
LXNpemU6IDE4cHg7IHBhZGRpbmc6IDBweDsiIHZhbHVlPSJBIj48L2lucHV0Pgo8aW5wdXQgdHlw
ZT1idXR0b24gc3R5bGU9IndpZHRoOjQwcHg7IGZvbnQtc2l6ZTogMThweDsgcGFkZGluZzogMHB4
OyIgdmFsdWU9IkEiPjwvaW5wdXQ+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>