This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9714 - Canvas element stops functioning at large widths
Summary: Canvas element stops functioning at large widths
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML Canvas 2D Context (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://adaptabit.com/test/index-canva...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 09:27 UTC by troy.brophy
Modified: 2010-10-05 12:58 UTC (History)
4 users (show)

See Also:


Attachments

Description troy.brophy 2010-05-12 09:27:49 UTC
I have created a functional canvas element at widths up to 22,000 pixels, with a 2d object drawn at 20,000 pixels (horizontal position).

But as I try to increase the width of the canvas element beyond that width, the 2d object no longer appears.

Code sample:

<canvas id="mycanvas" style="position: absolute;" width="4000600" height="600">your browser does not support the canvas tag</canvas>


<script type="text/javascript">
	var canvas=document.getElementById('mycanvas');
	var ctx=canvas.getContext('2d');
	ctx.fillStyle='#FF0000';
	ctx.fillRect(4000000,100,300,300);

</script>

Expected to see the 300X300px red square just to the left of the page's right edge (600 pixels to the left), but nothing appears. 

I'm new to this element, so I may be missing something, but this code works fine if the width of the CANVAS element is reduced, and the fillRect horizontal position is also reduced, both under 30,000 pixels.
Comment 1 troy.brophy 2010-05-12 09:35:00 UTC
Added test site URL.
Comment 2 Ian 'Hixie' Hickson 2010-08-24 23:18:26 UTC
EDITOR'S RESPONSE: This is an Editor'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: Rejected
Change Description: no spec change
Rationale: This sounds like a browser-specific problem. The spec doesn't apply any hard limitations.