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 17141 - 2d.pattern.repeat.null is bogus
Summary: 2d.pattern.repeat.null is bogus
Status: NEW
Alias: None
Product: HTML WG
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ms2ger
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: needs-testcase
Depends on:
Blocks:
 
Reported: 2012-05-21 17:24 UTC by Ms2ger
Modified: 2013-09-14 06:38 UTC (History)
3 users (show)

See Also:


Attachments

Description Ms2ger 2012-05-21 17:24:30 UTC
http://www.w3c-test.org/html/tests/submission/PhilipTaylor/canvas/2d.pattern.repeat.null.html

has

var pattern = ctx.createPattern(img, null);

null is converted into the string "null", so per <http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-createpattern> "If an unrecognized value is given, then the user agent must throw a SyntaxError exception.", this should throw.
Comment 1 Ms2ger 2012-06-15 19:11:14 UTC
Fixed:

https://dvcs.w3.org/hg/html/rev/4e230b0f13dd

Please review.
Comment 2 Ian 'Hixie' Hickson 2013-09-14 04:09:40 UTC
I changed the WHATWG spec on this, since the browsers didn't align. r8187 :-(

I blame the W3C fork for this, it caused confusion, as usual.
https://bugzilla.mozilla.org/show_bug.cgi?id=784809
Comment 3 Michael[tm] Smith 2013-09-14 06:38:43 UTC
Adding "needs-testcase" keyword; http://w3c-test.org/testrunner/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.null.html needs to be updated. Perhaps that amounts to backing out https://github.com/w3c/web-platform-tests/commit/398c348ab9827a450a2e6a3e15e9676ee8b6892a ?