<?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>22474</bug_id>
          
          <creation_ts>2013-06-26 13:10:05 +0000</creation_ts>
          <short_desc>Percentage top and bottom property does not always refer to the height of containing block</short_desc>
          <delta_ts>2013-06-26 13:10:05 +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>CSS Level 2</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="Glen Huang">curvedmark</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89885</commentid>
    <comment_count>0</comment_count>
    <who name="Glen Huang">curvedmark</who>
    <bug_when>2013-06-26 13:10:05 +0000</bug_when>
    <thetext>From http://www.w3.org/TR/CSS21/visuren.html#position-props
the spec says:

&gt; &lt;percentage&gt;
&gt;         The offset is a percentage of the containing block&apos;s width (for &apos;left&apos; or &apos;right&apos;) or height (for &apos;top&apos; and &apos;bottom&apos;).

But test case http://jsbin.com/ocadip/18/edit show that for all major browsers, when a relatively positioned box is inside an absolutely positioned box, it&apos;s percentage top property resolves to zero.

From the discussion at http://lists.w3.org/Archives/Public/www-style/2013Jun/0473.html it appears that if a relatively positioned box&apos;s containing block doesn&apos;t have an explicitly specified height value the top and bottom property of that relatively positioned box, if they are of a percentage value, should compute to zero, which works much like the height property.

So I think the spec should at least mention that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>