<?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>15631</bug_id>
          
          <creation_ts>2012-01-19 17:24:28 +0000</creation_ts>
          <short_desc>transform-origin value description is confusing, or possibly incorrect</short_desc>
          <delta_ts>2012-01-25 18:38:02 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15432</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62909</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-19 17:24:28 +0000</bug_when>
    <thetext>(values pretty-printed for legibility)

&quot;&quot;&quot;
Value:
[
  [
    [ &lt;percentage&gt; | &lt;length&gt; | left | center | right ]
    [ &lt;percentage&gt; | &lt;length&gt; | top | center | bottom ]?
  ]
  &lt;length&gt;
] | [
  [
    [ left | center | right ]
    ||
    [ top | center | bottom ]
  ]
  &lt;length&gt;
]
&quot;&quot;&quot;
http://dev.w3.org/csswg/css3-3d-transforms/#transform-origin

The prose assumes that this works out to a three-dimensional point, but it&apos;s not explained how.  The use of &quot;?&quot; in the first part and &quot;||&quot; in the second part implies that a two-argument version is allowed, but the meaning isn&apos;t explained.  E.g., &quot;50% 10px&quot; is allowed by this grammar, but nothing says how to interpret it.  In reality, it will be interpreted the same as &quot;50% 10px 0&quot;, but I don&apos;t think that&apos;s the intent.

I suggest that this be changed to

&quot;&quot;&quot;
Value:
[
  [ &lt;percentage&gt; | &lt;length&gt; | left | center | right ]
  [ &lt;percentage&gt; | &lt;length&gt; | top | center | bottom ]
  &lt;length&gt;
] | [
  [
    [ left | center | right ]
    &amp;&amp;
    [ top | center | bottom ]
  ]
  &lt;length&gt;
]
&quot;&quot;&quot;

so that exactly three arguments must be provided for the three-dimensional version.  Then if the 2D transform-origin is changed to only allow one or two arguments (bug 15432), there will be no ambiguity.

(Alternatively, specify the one-, two-, and three-argument versions of transform-origin in the 3D spec, and have it supersede the 2D spec.  Or merge the specs.  But at a minimum, they should be consistent.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63112</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-01-25 18:38:02 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>