Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7035139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:16:09+00:00 2026-05-28T01:16:09+00:00

If I do this: <canvas id=canvas width=100 height=100> <p>Your browser does not support HTML5

  • 0

If I do this:

    <canvas id="canvas" width="100" height="100">
        <p>Your browser does not support HTML5 Canvas.</p>
    </canvas>

And this:

    var canvas = document.getElementById('canvas');
    var ctx = canvas.getContext('2d');

    ctx.fillRect(150, 150, 10, 20);

Will the rectangle be rendered or will it be ignored by default?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:16:09+00:00Added an answer on May 28, 2026 at 1:16 am

    Short of looking at the source code for a browser, I don’t think there is any way to know. The spec does give us one hint:

    When a shape or image is painted, user agents must follow these steps,
    in the order given (or act as if they do):

    Render the shape or image onto an infinite transparent black bitmap

    Note the word ‘infinite’. So the spec does suggest the browser should render things that are beyond the bounds of the canvas. But if I had to guess, most browsers will notice the shape is outside the current clipping region and drop the call. There is no way to render something beyond the bounds of the canvas then “scroll” it into the view, the canvas has no concept of that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a user control which has a Canvas of height 100 and width
<html> <head> <style type=text/css> canvas { width: 100%; height: 100%; } </style> <script> function
I keep reading about how great this new Canvas element for HTML5 is and
When I try to execute this in jQuery I get $ctx.getContext is not a
I have a main canvas 'blackboard' in a panel, this canvas has itself several
I have a MyCanvas class that extends JComponent. On this canvas I have drawn
here is my Problem, I want to pass the integer 1 when this canvas
I want to place this UserControl at Canvas.Left=168, Canvas.Top=213. However, the control appears at
I am using an ItemsControl where the ItemsPanel is set to Canvas (see this
this is my code <Canvas Name=chartCanvas1 ClipToBounds=True Background=Beige> <Canvas.RenderTransform> <TransformGroup> <ScaleTransform ScaleY=-1 /> <TranslateTransform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.