<?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>16062</bug_id>
          
          <creation_ts>2012-02-21 17:15:44 +0000</creation_ts>
          <short_desc>Behavior for out-of-range values needs to be defined</short_desc>
          <delta_ts>2015-02-10 22:19: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>Transitions</component>
          <version>unspecified</version>
          <rep_platform>All</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="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dbaron</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>64380</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-21 17:15:44 +0000</bug_when>
    <thetext>This is currently issue 7 in the spec, but I&apos;m filing a bug so I can get notified when it&apos;s fixed:

&quot;&quot;&quot;
Issue: Need to describe handling of out-of-range values that can result from cubic-bezier(). Clamping values to the allowed range is probably the best solution.
&quot;&quot;&quot;

For example, if you have something like cubic-bezier(0.25, -2, 0.75, 1), on a property like border-bottom-width that doesn&apos;t accept negative values, the computed value should be clamped to 0px at points where it would be negative.

Gecko seems to do this correctly.  WebKit seems not to clamp anything, and instead either allows the negative value, or has a large positive value like 134217660px, or falls back to a default value like &quot;normal&quot;.  IE and Opera clamp some properties correctly but not others.

(I hit this issue while porting Gecko&apos;s test_transitions_per_property.html.  Non-Gecko browsers fail a lot of the clamping tests, but the spec isn&apos;t clear that Gecko is right.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64381</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-02-21 17:42:55 +0000</bug_when>
    <thetext>Dup of bug 14607?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64382</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-21 18:28:50 +0000</bug_when>
    <thetext>Nope.  The current spec explicitly allows the y-coordinates of cubic-bezier() (i.e., second and fourth arguments) to be out of the range [0, 1].  This allows property values to &quot;bounce&quot; beyond the start/end values.  Try this:

data:text/html,&lt;!doctype html&gt;
&lt;div style=&quot;text-indent:0px;
-ms-transition:2s cubic-bezier(0.25, -0.5, 0.75, 1);
-moz-transition:2s cubic-bezier(0.25, -0.5, 0.75, 1);
-webkit-transition:2s cubic-bezier(0.25, -0.5, 0.75, 1);
-o-transition:2s cubic-bezier(0.25, -0.5, 0.75, 1);&quot;&gt;
Some text&lt;/div&gt;
&lt;script&gt;
setTimeout(function(){document.querySelector(&quot;div&quot;).style.textIndent = &quot;100px&quot;;}, 1000);
&lt;/script&gt;

This causes the indentation to become briefly negative before it rises to 100px.  This is good, and we want to allow it.  But for properties where negative values are prohibited, it has to be clamped.  I&apos;m seeing getComputedStyle().fontSize == &quot;-67px&quot; in WebKit right now, for instance.  This also needs to apply to the upper end, for properties that are clamped from above (like opacity).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117823</commentid>
    <comment_count>3</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2015-02-10 22:19:05 +0000</bug_when>
    <thetext>I fixed this a while ago, with the text:

http://dev.w3.org/csswg/css-transitions/#animatable-types

 However, if this value (Vres) is outside the allowed range of values for the property, then it is clamped to that range. This can occur if p is outside of the range 0 to 1, which can occur if a timing function is specified with a y1 or y2 that is outside the range 0 to 1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>