<?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>11188</bug_id>
          
          <creation_ts>2006-10-06 02:06:31 -0700</creation_ts>
          <short_desc>Setting hspace on a table overrides align=center</short_desc>
          <delta_ts>2008-01-11 10:27:53 -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>Tables</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.iloveindia.com/astrology/index.html</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>mitz</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53993</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-06 02:06:31 -0700</bug_when>
    <thetext>A table with align=center is not centered if it also specifies hspace. See attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53994</commentid>
    <comment_count>1</comment_count>
      <attachid>10945</attachid>
    <who name="">mitz</who>
    <bug_when>2006-10-06 02:07:23 -0700</bug_when>
    <thetext>Created attachment 10945
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66768</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-01-10 11:23:35 -0800</bug_when>
    <thetext>An example of this on a real website:
http://www.iloveindia.com/astrology/index.html
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66770</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-01-10 11:46:58 -0800</bug_when>
    <thetext>Interesting.  Firefox appears to be somehow giving some mapped attributes a higher precedence than others.  In particular, it makes sure hspace gets mapped in before align does.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66772</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-01-10 11:56:06 -0800</bug_when>
    <thetext>The bug is that we implemented align=center in the CSS file.  This created a situation where hspace would always win (instead of allowing attribute order to determine the winner).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66773</commentid>
    <comment_count>5</comment_count>
      <attachid>18368</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-01-10 11:57:41 -0800</bug_when>
    <thetext>Created attachment 18368
Patch that moves align=center into code instead of CSS

This patch will also improve the style sharing performance of tables, since the attribute selector rule in html4.css prevented tables from sharing style with one another.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66774</commentid>
    <comment_count>6</comment_count>
      <attachid>18368</attachid>
    <who name="">mitz</who>
    <bug_when>2008-01-10 12:03:40 -0800</bug_when>
    <thetext>Comment on attachment 18368
Patch that moves align=center into code instead of CSS

r=me. Add a test case if not covered by an existing one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66922</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-01-11 10:27:53 -0800</bug_when>
    <thetext>Fixed in r29409.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10945</attachid>
            <date>2006-10-06 02:07:23 -0700</date>
            <delta_ts>2006-10-06 02:07:23 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>11188 testcase.html</filename>
            <type>text/html</type>
            <size>134</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PHRhYmxlIGFsaWduPSJjZW50ZXIiIGhzcGFjZT0iMCI+DQogICAgPHRyPiANCiAgICAgICAgPHRk
PiANCiAgICAgICAgICAgIFRoaXMgc2hvdWxkIGJlIGNlbnRlcmVkDQogICAgICAgIDwvdGQ+DQog
ICAgPC90cj4NCjwvdGFibGU+DQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>18368</attachid>
            <date>2008-01-10 11:57:41 -0800</date>
            <delta_ts>2008-01-10 12:03:40 -0800</delta_ts>
            <desc>Patch that moves align=center into code instead of CSS</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1419</size>
            <attacher name="Dave Hyatt">hyatt</attacher>
            
              <data encoding="base64">SW5kZXg6IGNzcy9odG1sNC5jc3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gY3NzL2h0bWw0LmNzcwkocmV2aXNp
b24gMjkzMTYpCisrKyBjc3MvaHRtbDQuY3NzCSh3b3JraW5nIGNvcHkpCkBAIC0xNjksMTEgKzE2
OSw2IEBAIHRhYmxlIHsKICAgICBib3JkZXItY29sb3I6IGdyYXkKIH0KIAotdGFibGVbYWxpZ249
ImNlbnRlciJdIHsKLSAgICBtYXJnaW4tbGVmdDogYXV0bzsKLSAgICBtYXJnaW4tcmlnaHQ6IGF1
dG8KLX0KLQogdGhlYWQgewogICAgIGRpc3BsYXk6IHRhYmxlLWhlYWRlci1ncm91cDsKICAgICB2
ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwpJbmRleDogaHRtbC9IVE1MVGFibGVFbGVtZW50LmNwcAo9
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09Ci0tLSBodG1sL0hUTUxUYWJsZUVsZW1lbnQ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sKICAgICAg
ICAgaWYgKCFhdHRyLT52YWx1ZSgpLmlzRW1wdHkoKSkKICAgICAgICAgICAgIGFkZENTU1Byb3Bl
cnR5KGF0dHIsIENTU19QUk9QX1ZFUlRJQ0FMX0FMSUdOLCBhdHRyLT52YWx1ZSgpKTsK
</data>
<flag name="review"
          id="8020"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>