mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #9109 - nerith:createpattern, r=jdm
Support empty strings as the repeat argument (CreatePattern) According to the third step in the specification [1], createPattern should let the repetition argument be "repeat" when it is the empty string. The code in CanvasRenderingContext2D::CreatePattern did not implement this step and instead threw a SyntaxError exception when an empty string was supplied as the repetition argument. Fixes #9079. [1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9109) <!-- Reviewable:end -->
This commit is contained in:
commit
11d160fc73
3 changed files with 5 additions and 11 deletions
|
@ -1,5 +0,0 @@
|
|||
[2d.pattern.repeat.empty.html]
|
||||
type: testharness
|
||||
[Canvas test: 2d.pattern.repeat.empty]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[2d.pattern.repeat.null.html]
|
||||
type: testharness
|
||||
[Canvas test: 2d.pattern.repeat.null]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue