<?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>26588</bug_id>
          
          <creation_ts>2014-08-15 15:25:39 +0000</creation_ts>
          <short_desc>transform-origin: value definition and description are inconsistent</short_desc>
          <delta_ts>2015-08-20 04:23:50 +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>Transforms</component>
          <version>unspecified</version>
          <rep_platform>PC</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="Alexander Zolotov">alexander.zolotov</reporter>
          <assigned_to name="Simon Fraser">smfr</assigned_to>
          <cc>ayg</cc>
    
    <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>dschulze</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110212</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Zolotov">alexander.zolotov</who>
    <bug_when>2014-08-15 15:25:39 +0000</bug_when>
    <thetext>There is third part of value definition:
 [ center | [ left | right ] ] &amp;&amp; [ center | [ top | bottom ] ] &lt;length&gt;?

According to Css Values and Unit Module (http://dev.w3.org/csswg/css-values/#component-combinators) it should be interpreted as

 [ center | [ left | right ] ] &amp;&amp; [ [ center | [ top | bottom ] ] &lt;length&gt;? ]

Because &apos;Juxtaposition is stronger than the double ampersand&apos;. It means that value &apos;left top 20cm&apos; is valid. Since &apos;&amp;&amp;&apos; is re-orderable combinator the &apos;top 20cm left&apos; value is valid too.

But the description tells us that &apos;a third value always represents the Z position (or offset) and must be of type &lt;length&gt;&apos; so &apos;top 20cm left&apos; can&apos;t be valid.

Please fix the description or add extra brackets in value definition like in following example:

 [ [ center | [ left | right ] ] &amp;&amp; [ [ center | [ top | bottom ] ] ] &lt;length&gt;? 

Also it seems that brackets in &apos;[left | right]&apos; and &apos;[top | bottom]&apos; groups are redundant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122682</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2015-08-20 04:23:50 +0000</bug_when>
    <thetext>I changed it to:

  [ left | center | right | top | bottom | &lt;percentage&gt; | &lt;length&gt; ]
| 
  [ left | center | right | &lt;percentage&gt; | &lt;length&gt; ]
  [ top | center | bottom | &lt;percentage&gt; | &lt;length&gt; ] &lt;length&gt;?
|
  [[ center | left | right ] &amp;&amp; [ center | top | bottom ]] &lt;length&gt;?

which I think is correct. I suspect it was copied from https://drafts.csswg.org/css-backgrounds-3/#position but without understanding the &quot;edge plus delta&quot; form that the final production is trying to address.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>