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

  • Home
  • SEARCH
  • 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 7667457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:06:27+00:00 2026-05-31T15:06:27+00:00

This problem only happen in Chrome 18Dev+.Version 17 don’t. The area where should be

  • 0

This problem only happen in Chrome 18Dev+.Version 17 don’t.
The area where should be the pattern is filled with black color.

Here’s the code, you can copy it and run it in chrome:

<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>clock</title>
    <style type="text/css">
        canvas{
            display:block;
            width:400px;
            height:400px;
            border:2px solid #000;
            margin:100px auto;
        }
    </style>
</head>
<body>
    <canvas id='c'></canvas>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var pic = new Image();
        $(function(){
            $(pic).load(function() {
                var canvas = document.getElementById('c');
                canvas.width = 400;
                canvas.height = 400;

                if (canvas.getContext) {
                    var ctx = canvas.getContext('2d');

                    ctx.fillStyle = ctx.createPattern(pic, 'repeat');


                    setInterval(function() {
                        ctx.clearRect(0, 0, canvas.width, canvas.height);
                        ctx.arc(canvas.width*0.5, canvas.height*0.5, 165, 0, Math.PI*2, false);
                        ctx.fill();
                    }, 1000);
                }
            });
        });
        pic.src = 'https://www.google.com.hk/images/nav_logo105.png';
    </script>
</body>

  • 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-31T15:06:28+00:00Added an answer on May 31, 2026 at 3:06 pm

    Oh I know this one.

    I reported it back in January, its still broken in Chrome Dev. See the last comment there.

    It turns out that the pattern will work the first time its drawn in a tab. Then you have to close the tab and make a new one for it to work again. Refreshing the page won’t do it. It’s a real pain.

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

Sidebar

Related Questions

This problem is only happening in Google Chrome on Mac OS X (Chrome 17).
This problem is only in IE. Consider the following HTML: <html> <body> <div style='position:absolute;left:1em;right:1em;top:1em;bottom:1em;overflow:auto;>
[Edit: This problem applies only to 32-bit systems. If your computer, your OS and
This problem is similar to when creating alternate colour table-rows, only we are dealing
My example is similar to this - The only problem is I cannot rewrite
How do I get past this variable initialization problem? If I only could figure
This seems to be a problem related to Safari only. I've tried 4 on
i have a strange problem only in Chrome using an iframe but working in
Can I copy only the error message from Eclipse Problems with instead of this
This problem crops up every now and then at work. Our build machine can

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.