David Raifaizen
b5159dc7ff
Setting current color to black if canvas is not rendered in document
2016-04-22 09:59:49 -04:00
Ms2ger
c1ccf9d74b
Note bugs for some 2dcontext test failures.
2016-04-14 13:00:44 +02:00
Brandon Fairchild
1ccab328f9
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
2015-12-31 11:48:15 -05:00
David Zbarsky
8408891ec5
Parse currentColor as Canvas2D color
2015-11-21 11:59:19 -08:00
Emilio Cobos Álvarez
e2b7a01055
webgl: texImage2D with a canvas argument
2015-09-25 16:20:31 +02:00
David Zbarsky
7315b50973
CanvasGradient#addColorStop should throw for invalid colors and offsets
2015-08-09 23:19:56 -04:00
Simon Sapin
90d7d11a23
Upgrade cssparser
...
Pick up the fix for https://github.com/servo/rust-cssparser/issues/76
2015-08-07 18:34:16 +02:00
David Zbarsky
fee8abe5a2
GetImageData should return un-premultiplied alpha values
2015-08-06 05:14:53 -04:00
David Zbarsky
75e444c3b2
Make createRadialGradient throw for negative radii
2015-08-04 15:08:37 -04:00
Hyowon Kim
0e8491fb8c
Create pattern from HTMLCanvasElement or CanvasRenderingContext2D.
2015-06-24 09:56:28 +09:00
Hyowon Kim
cc55e2e426
Check invalid values for the shadow attributes.
2015-06-18 16:54:12 +09:00
Hyowon Kim
2e230bdb93
Implement fill and stroke functions for all pattern types and check the zero size gradient.
2015-06-17 09:46:38 +09:00
Hyowon Kim
00240e5550
Implementation of pattern fill style for canvas.
2015-06-13 14:35:13 +09:00
Hyowon Kim
5bbfb42e90
Replace fill_color and stroke_color with fill_style and stroke_style in CanvasContextState.
...
The fillStyle and strokeStyle attributes can be either
strings(color), CanvasGradients, or CanvasPatterns.
2015-06-06 16:15:11 +09:00
Hyowon Kim
5d05ffc417
Serialize colors for fill and stroke styles in canvas.
2015-06-03 09:11:24 +09:00
Mátyás Mustoha
5287cb7fba
Canvas: implement rectangle drawing.
2015-04-21 15:21:30 +02:00
Josh Matthews
883ba03bb9
Skip the tests that are triggering some kind of OOM in the python test runner when RUST_BACKTRACE is enabled.
2015-03-31 16:26:07 -04:00
Mátyás Mustoha
d3199aef74
Implement gradient fill styles for canvas.
2015-03-19 15:59:08 +01:00
Ms2ger
fdfcd7590a
Enable 2dcontext tests.
2015-02-23 13:50:34 +01:00