<?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>29413</bug_id>
          
          <creation_ts>2016-01-31 23:07:09 +0000</creation_ts>
          <short_desc>Allow unitless 0 as a valid rotation value</short_desc>
          <delta_ts>2017-01-13 17:39:24 +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="Simon Fraser">smfr</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>rdvornov</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>124775</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2016-01-31 23:07:09 +0000</bug_when>
    <thetext>Need to allow unitless 0 as an argument to rotation functions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124777</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2016-01-31 23:22:10 +0000</bug_when>
    <thetext>Maybe no need to change this if Values and Units changes to allow unitless 0 for angles, as just resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128338</commentid>
    <comment_count>2</comment_count>
    <who name="Roman Dvornov">rdvornov</who>
    <bug_when>2016-12-21 10:52:27 +0000</bug_when>
    <thetext>&gt; Maybe no need to change this if Values and Units changes to allow unitless 0 for angles, as just resolved.

Unitless zero for angles is allowed by CSS2.2 and CSS Values and Units Module Level 3

https://www.w3.org/TR/CSS22/aural.html#angles
&gt; Like for &lt;length&gt;, the unit may be omitted, if the value is zero: &apos;0deg&apos; may be written as &apos;0&apos;.

https://www.w3.org/TR/css-values-3/#angles
&gt; ... However, for zero angles the unit identifier is optional (i.e. can be syntactically represented as the number 0). ...

Also spec has it&apos;s own &lt;angle&gt; definition (influenced by SVG) and it&apos;s confusing.
https://www.w3.org/TR/css-transforms-1/#svg-angle
&gt; An angle can be a &lt;number&gt; without an unit identifier. In this case the number gets interpreted as a value in degrees.

I think, the last one should be a separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128339</commentid>
    <comment_count>3</comment_count>
    <who name="Roman Dvornov">rdvornov</who>
    <bug_when>2016-12-21 11:08:09 +0000</bug_when>
    <thetext>My bad, the &lt;angle&gt; definition in the spec is about values in `transform` atrribute on SVG elements. So it doesn&apos;t affect &lt;angle&gt; definition for CSS.

Also I found that the spec says (https://www.w3.org/TR/css-transforms-1/#transform-functions):

&gt; ... Wherever &lt;angle&gt; is used in this specification, a &lt;number&gt; that is equal to zero is also allowed, which is treated the same as an angle of zero degrees.

That&apos;s equivalent to CSS2.2 and Values and Units Module. Looks like issue is resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128372</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2017-01-13 17:39:24 +0000</bug_when>
    <thetext>CSS WG resolved that unitless 0 was OK everywhere.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>