<?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>16389</bug_id>
          
          <creation_ts>2012-03-15 15:10:37 +0000</creation_ts>
          <short_desc>resolved value for top/left/bottom/right doesn&apos;t match most browsers</short_desc>
          <delta_ts>2014-06-30 08:34:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Mike Sherov">mike.sherov</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>bruno</cc>
    
    <cc>m.goleb</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65607</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Sherov">mike.sherov</who>
    <bug_when>2012-03-15 15:10:37 +0000</bug_when>
    <thetext>I believe the CSSOM spec should be amended to include top/left/bottom/right in the list of properties that return used value when display is not &quot;none&quot;.

Currently, IE, FF, and Opera return the &quot;used value&quot; for top/left/bottom/right when &quot;display&quot; is not &quot;none&quot;. Webkit returns the &quot;computed value&quot;.

There is an open bug for this in Webkit to do the same as the other browsers: https://bugs.webkit.org/show_bug.cgi?id=29084 . One source of hesitation (and rightfully so) is that the spec currently says this is the correct behavior. 

There are also open bugs for this in popular JS libraries: http://bugs.jquery.com/ticket/10639 http://yuilibrary.com/projects/yui3/ticket/2529799

Having the used value returned is a very useful operation. It&apos;s why JS libs are asking for it and a majority of browsers are doing it this way. It&apos;d be great if the spec matched this reality. 

Please see this thread on www-style for more information: http://lists.w3.org/Archives/Public/www-style/2012Mar/0350.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69863</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Sherov">mike.sherov</who>
    <bug_when>2012-07-12 03:39:55 +0000</bug_when>
    <thetext>We began having a discussion on the webkit bug tracker about whether or not &quot;auto&quot; is considered a used value or not, which is important for the definition of &quot;resolved value&quot; and important for helping webkit match the intent of the W3C here: https://bugs.webkit.org/show_bug.cgi?id=29084

&gt; Opera 11.6: Passes all tests as written
&gt; FF13: Converts &quot;auto&quot; to pixels so fails when expecting &quot;auto&quot;.
&gt; IE9/IE10: incorrectly accounts for padding so fails on the padding tests.
&gt; Webkit: doesn&apos;t convert to pixels so fails when expecting pixels.
&gt; 
&gt; Now, if we really wanted to go all the way with this, I personally believe that the FF behavior is most useful, and most accurately fits the idea of returning used value (that is, converting &quot;auto&quot; to actual pixels, even if not specified&quot;). 
&gt; 
&gt; However, to achieve the most consistency is to expect &quot;auto&quot;, as you have written here.

Yeah, I&apos;m not sure what the correct &quot;expected&quot; behavior is. Intuitively FF or Opera seem to do well but given that IE and Opera both return &quot;auto&quot; for unspecified values, returning &quot;auto&quot; here seems like a good idea.

We need some tests for vertical writing mode and RTL pages.

&gt; According to http://www.w3.org/TR/CSS2/cascade.html#used-value, &quot; The used value is the result of taking the computed value and resolving any remaining dependencies into an absolute value.&quot; and then subsequently &quot;A used value is in principle the value used for rendering,&quot;
&gt; 
&gt; Is &quot;auto&quot; an absolute value or the value used for rendering? I don&apos;t personally believe so.
&gt; Is &quot;auto&quot; a useful value to return? I personally don&apos;t believe so.
&gt; Is &quot;auto&quot; consistent with MOST of the other browsers? yes.
&gt; 
&gt; What I really care about here is that the percentage stuff gets fixed. Perhaps we can save any decision about &quot;auto&quot; for another ticket?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69880</commentid>
    <comment_count>2</comment_count>
    <who name="Mike Sherov">mike.sherov</who>
    <bug_when>2012-07-12 12:32:53 +0000</bug_when>
    <thetext>Glenn, I just wanted to document your response from www-style here: http://lists.w3.org/Archives/Public/www-style/2012Jul/0284.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69885</commentid>
    <comment_count>3</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-07-12 15:19:50 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Glenn, I just wanted to document your response from www-style here:
&gt; http://lists.w3.org/Archives/Public/www-style/2012Jul/0284.html

See also http://lists.w3.org/Archives/Public/www-style/2012Jul/0288.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>