<?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>16162</bug_id>
          
          <creation_ts>2012-02-29 18:00:43 +0000</creation_ts>
          <short_desc>&lt;!-- saved from url=(0186)https://s3.amazonaws.com/content.sunnyvale.itu.edu/assets/51484/original/lec3-demo1.html?AWSAccessKeyId=AKIAIMQP2H67TNL3T5XA&amp;Expires=1330581576&amp;Signature=9TNu5hYenC2beOzU3Gnau4%2FmGnk%3D --&gt; &lt;html&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-</short_desc>
          <delta_ts>2012-02-29 22:40:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64741</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-02-29 18:00:43 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/2dcontext/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:

&lt;!-- saved from
url=(0186)https://s3.amazonaws.com/content.sunnyvale.itu.edu/assets/51484/orig
inal/lec3-demo1.html?AWSAccessKeyId=AKIAIMQP2H67TNL3T5XA&amp;Expires=1330581576&amp;Si
gnature=9TNu5hYenC2beOzU3Gnau4%2FmGnk%3D --&gt;
&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;
charset=ISO-8859-1&quot;&gt;
&lt;style&gt;
div
{ position: relative;
  left: 190px;
}
&lt;/style&gt;
&lt;script&gt;
  var CWID = 400;
  var CHEI = 400;
  var cleft = 50;
  var ctop = 50;
  
  var vlist = 
  [{x: 15, y: 15},
   {x: 45, y: 15},
   {x: 45, y:-15},
   {x: 15, y:-15},
   {x: 15, y:-45},
   {x:-15, y:-45},
   {x:-15, y:-15},
   {x:-45, y:-15},
   {x:-45, y: 15},
   {x:-15, y: 15},
   {x:-15, y: 45},
   {x: 15, y: 45}
  ];

  var angle = 0;		// starting rotation angle
  var trans = {x:CWID/2, y:CHEI/2};   // starting position
  
  var canvas = document.createElement(&apos;canvas&apos;);
  canvas.width = CWID;
  canvas.height = CHEI;
  canvas.style.backgroundColor = &apos;#eeeeee&apos;;
  canvas.style.position = &apos;absolute&apos;;
  canvas.style.left = cleft+&apos;px&apos;;
  canvas.style.top = ctop+&apos;px&apos;;
  var con = canvas.getContext(&apos;2d&apos;);
  con.translate(trans.x, trans.y);
  drawPath(vlist);
  
  function translate(e)
  { trans.x = e.pageX-cleft;
    trans.y = e.pageY-ctop;
    drawPath(vlist);
  }
  function rotate()
  { angle += 0.1;
    drawPath(vlist);
  }
  function drawPath(v)
  { con.setTransform(1,0,0,1,0,0);	 // set to identity
    con.clearRect(0,0,CWID,CHEI);	 // clear canvas

    con.translate(trans.x,trans.y);
    con.rotate(angle);
    con.beginPath()			 // draw the shape
    con.moveTo(v[0].x,v[0].y);
    for (var i=1; i&lt;v.length; i++)
      con.lineTo(v[i].x,v[i].y);
    con.closePath();
    con.stroke();
  }
div.addEventListener(&apos;Right Rotation&apos;,tran,false);
  function tran(e)
  { con.save();
    con.setTransform(1,0,0,1,0,0);
    con.clearRect(0,0,400,400);
    con.restore();
    con.translate(150,220);
    con.rotate(0.1);
    con.translate(-150,-220);
    con.beginPath(); con.moveTo(100,100);
    con.rect(100,200,100,40);
    con.stroke();
  }
div.addEventListener(&apos;Left Rotaion&apos;,tran,false);
  function tran(e)
  { con.save();
    con.setTransform(1,0,0,1,0,0);
    con.clearRect(0,0,400,400);
    con.restore();
    con.translate(150,220);
    con.rotate(0.1);
    con.translate(-150,-220);
    con.beginPath(); con.moveTo(100,100);
    con.rect(100,200,100,40);
    con.stroke();
  }
var x = 0;
  canvas.addEventListener(&apos;Big&apos;,func1,false);
  function func1()
  { x += 10;
    con.clearRect(0,0,300,300);
    con.beginPath();
    con.arc(150,150,10+x, 0,2*Math.PI);
    con.stroke();
  }
var x = 0;
  canvas.addEventListener(&apos;Small&apos;,func1,false);
  function func1()
  { x += 10;
    con.clearRect(0,0,300,300);
    con.beginPath();
    con.arc(150,150,10-x, 0,2*Math.PI);
    con.stroke();
  }


&lt;/script&gt;
&lt;/head&gt;

&lt;body id=&quot;body&quot;&gt;&lt;meta name=&quot;VeeHD&quot; content=&quot;plugin for corp&quot;&gt;
&lt;div id=&quot;button&quot;&gt;rotate&lt;/div&gt;
&lt;script&gt;  
  document.getElementById(&apos;body&apos;).appendChild(canvas);
  canvas.addEventListener(&apos;mousedown&apos;,translate,false);
  document.getElementById(&apos;button&apos;)
   .addEventListener(&apos;mousedown&apos;,rotate,false);
&lt;/script&gt;&lt;canvas width=&quot;400&quot; height=&quot;400&quot; style=&quot;background-color: rgb(238,
238, 238); position: absolute; left: 50px; top: 50px; &quot;&gt;&lt;/canvas&gt;

&lt;/body&gt;&lt;/html&gt;

Posted from: 2602:306:ccb3:5d80:c5a0:d08e:7bb2:39ff
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64777</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-02-29 22:40:47 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: I don&apos;t understand. Could you elaborate?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>