<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14066</bug_id>
          
          <creation_ts>2011-09-07 19:21:54 +0000</creation_ts>
          <short_desc>Work around inconsistency in browser handling of align=* on random elements</short_desc>
          <delta_ts>2011-09-21 15:38:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56481</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-07 19:21:54 +0000</bug_when>
    <thetext>In IE and Gecko, the align attribute is only respected for particular elements, so &lt;nonexistentelement align=right&gt; has no special text-align.  WebKit and Opera give it text-align: right.  This gives different results for some of the tests, so I&apos;m disabling them for now.  I need to file a WebKit bug and figure out how to work around this in the stylesheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56482</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-09-07 19:25:55 +0000</bug_when>
    <thetext>And for some elements align maps to float, not to text-align...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56485</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-07 19:39:03 +0000</bug_when>
    <thetext>Yes, but that&apos;s a separate issue.  What my tests are hitting is that if I have markup like &lt;quasit align=right&gt;, in WebKit document.queryCommandValue(&quot;justifyCenter&quot;) returns &quot;right&quot;, while in Gecko it returns &quot;start&quot;.  This is a problem when I&apos;m generating expected values for tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57070</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-21 15:38:41 +0000</bug_when>
    <thetext>Reported against WebKit:

https://bugs.webkit.org/show_bug.cgi?id=68392

It&apos;s a bug in Opera too.  Workaround committed, and tests reenabled:

https://dvcs.w3.org/hg/editing/rev/78c3c2c6467f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>