<?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>48803</bug_id>
          
          <creation_ts>2010-11-01 16:31:26 -0700</creation_ts>
          <short_desc>ComputedStyle returns -webkit-auto instead of left or right</short_desc>
          <delta_ts>2012-10-02 01:28:27 -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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>79914</dup_id>
          
          <bug_file_loc>http://dev.w3.org/csswg/css3-text/#text-align</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>glenn</cc>
    
    <cc>hyatt</cc>
    
    <cc>jparent</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>marcosalmeida</cc>
    
    <cc>mitz</cc>
    
    <cc>playmobil</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>303055</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-11-01 16:31:26 -0700</bug_when>
    <thetext>window.getComputedStyle returns text-align: -webkit-auto instead of text-align: left / text-align: right when queried against a node when text-align property is not explicitly specified.

For example, suppose we have:
&lt;div id=&quot;mydiv&quot; contentEditable&gt;foo&lt;/div&gt;

The following script gives -webkit-auto:
window.getComputedStyle(document.getElementById(&apos;mydiv&apos;))[&apos;textAlign&apos;]

Demo:
http://plexode.com/eval3/#ht=%3Cdiv%20id%3D%22mydiv%22%20contentEditable%3Efoo%3C%2Fdiv%3E&amp;ohh=1&amp;ohj=0&amp;jt=window.getComputedStyle(document.getElementById(&apos;mydiv&apos;))%5B&apos;textAlign&apos;%5D&amp;ojh=1&amp;ojj=1&amp;ms=100&amp;oth=0&amp;otj=0&amp;cex=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376281</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Moskovich">playmobil</who>
    <bug_when>2011-03-30 07:00:05 -0700</bug_when>
    <thetext>I was looking into whether we can remove -webkit-auto wholesale in favor of start.  These are basically the same [as far as I can tell] except for a case in CSSStyleSelector::adjustRenderStyle() which has a special case for TH tags introduced in http://trac.webkit.org/changeset/20889 .

So I looked back at when -webkit-auto was introduced into the tree, it used to be called -khtml-auto and before that -konq-auto , relevant CLs:
http://trac.webkit.org/changeset/13874
http://trac.webkit.org/changeset/1024</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>732418</commentid>
    <comment_count>2</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-10-02 01:28:27 -0700</bug_when>
    <thetext>This bug is OBE with bug 79914 already applied. The only thing that remains is removing support for using the older -webkit-auto value, for which I&apos;ve filed a bug 98126.

*** This bug has been marked as a duplicate of bug 79914 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>