Closed Bug 308929 Opened 19 years ago Closed 19 years ago

Using canvas createPattern only draws a single image and doesn't repeat it

Categories

(Core :: Graphics: Canvas2D, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kamiel, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

If you use the drawing context createpattern method to create a new pattern it
only draws a single image to the canvas. The repetition parameter doesn't have
any effect.

Reproducible: Always

Steps to Reproduce:
1. See testcase
2.
3.

Actual Results:  
Only one image is drawn

Expected Results:  
Drawn a wallpaper type pattern
Version: Trunk → 1.8 Branch
Attached file Testcase
Please retest in a nightly; I checked in repeat support after beta 1 shipped. 
Note that repeat-x and repeat-y will do the same thing as "repeat"; that
probably won't be fixed for 1.5, butt should have a new bug filed for that.
Yes, in yesterdays nightly (20050919) this now seems to work. I'll make a note
of the repeat-x and repeat-y options in the canvas tutorial i'm working on over
at the Mozilla Developer Center.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
No doubt fixed by bug 333177.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: