From 68a353c50e92fee4c489b2f2edb6cafc9ed2c505 Mon Sep 17 00:00:00 2001
From: Aaron Krajeski Can be set, to change the fill style. The style can be either a string containing a CSS color, or a The style can be either a string containing a CSS color, a Can be set, to change the stroke style. The style can be either a string containing a CSS color, or a The style can be either a string containing a CSS color, a Objects that implement the The The Both attributes can be either strings, When set to a When set to a CSSColorValue object, the assignment is not live and instead
+ the object is converted to a color up assignment. On getting, if the value is a color, then the serialization of the color must be returned. Otherwise, if it is not a color but a
Can be set, to change the fill style. The style can be either a string containing a CSS color, a Can be set, to change the stroke style. The style can be either a string containing a CSS color, a CanvasGradient
or
- CanvasPattern
object. Invalid values are ignored.CanvasGradient
,
+ CanvasPattern
or CSSColorValue object. Invalid values are ignored.strokeStyle
[ = value ]CanvasGradient
or
- CanvasPattern
object. Invalid values are ignored.CanvasGradient
,
+ CanvasPattern
or CSSColorValue object. Invalid values are ignored.CanvasFillStrokeStyles
interface have attributes and
methods (defined in this section) that control how shapes are treated by the object.fillStyle
attribute represents the color or style
- to use inside shapes, and the strokeStyle
attribute represents the color or
- style to use for the lines around the shapes.fillStyle
attribute represents the
+ color or style to use inside shapes, and the strokeStyle
attribute represents the color
+ or style to use for the lines around the shapes.CanvasGradient
s, or
- CanvasPattern
s. On setting, strings must be CSSColorValues. On setting, strings must be parsed with this canvas
element and the color assigned, and
- CanvasGradient
and CanvasPattern
objects must be assigned themselves. If
- parsing the value results in failure, then it must be ignored, and the attribute must retain its
- previous value. If the new value is a CanvasPattern
object that is marked as not origin-clean, then the
+ CanvasGradient
, CanvasPattern
and CSSColorValue
+ objects must be assigned themselves. If parsing the value results in failure,
+ then it must be ignored, and the attribute must retain its previous value. If
+ the new value is a CanvasPattern
object that is marked as
+ not origin-clean, then the
CanvasRenderingContext2D
's origin-clean flag must be set to false.CanvasPattern
or CanvasGradient
object, the assignment
is live, meaning that changes made to the object after the assignment do affect
subsequent stroking or filling of shapes.CanvasGradient
or CanvasPattern
, then the respective object must be
From 8a61c7a797cc08b8e27b3c9640b9c8a1ff7cbf87 Mon Sep 17 00:00:00 2001
From: Aaron Krajeski CanvasGradient
,
- CanvasPattern
or CSSColorValue object. Invalid values are ignored.CanvasPattern
or CSSColorValue object. Invalid values are ignored.strokeStyle
[ = value ]CanvasGradient
,
- CanvasPattern
or CSSColorValue object. Invalid values are ignored.CanvasPattern
or CSSColorValue object. Invalid values are ignored.
Both attributes can be either strings, CanvasGradient
s,
- CanvasPattern
s, or CSSColorValues. On setting, strings must be CSSColorValues. On setting, strings must be parsed with this canvas
element and the color assigned, and
- CanvasGradient
, CanvasPattern
and CSSColorValue
- objects must be assigned themselves. If parsing the value results in failure,
+ CanvasGradient
, CanvasPattern
. If parsing the value results in failure,
then it must be ignored, and the attribute must retain its previous value. If
the new value is a CanvasPattern
object that is marked as
not origin-clean, then the
@@ -62873,8 +62872,8 @@ try {
is live, meaning that changes made to the object after the assignment do affect
subsequent stroking or filling of shapes.
When set to a CSSColorValue object, the assignment is not live and instead - the object is converted to a color up assignment.
+When set to a CSSColorValue object, a color is derived from + that object and the style is set to that color.
On getting, if the value is a color, then the serialization of the color must be returned. Otherwise, if it is not a color but a
From 250f21e1ed4c157728aca9b4620236b1da48a53d Mon Sep 17 00:00:00 2001
From: Aaron Krajeski
When set to a CSSColorValue object, a color is derived from - that object and the style is set to that color.
+When set to a CSSColorValue object, the color is converted to RGB and a string is parsed from that value, the style is set to that string.
On getting, if the value is a color, then the serialization of the color must be returned. Otherwise, if it is not a color but a
From cc5f61ac003c0622d95d6487f96c5ca78493663d Mon Sep 17 00:00:00 2001
From: Aaron Krajeski
When set to a CSSColorValue object, the color is converted to RGB and a string is parsed from that value, the style is set to that string.
+When set to a CSSColorValue object, the color is converted to sRGB and a string is parsed from that value, the style is set to that string.
On getting, if the value is a color, then the serialization of the color must be returned. Otherwise, if it is not a color but a
From ca0618763cb57c3015a63c29c1c0f886eb8375e3 Mon Sep 17 00:00:00 2001
From: Aaron Krajeski Such objects have associated fill
style and stroke style
- values, which are either CSS colors, When the value is a CSS color, it must not be affected by the transformation matrix when used
to draw on bitmaps. When set to a When set to a The If the given value is a CSSColorValue, then: If the given value has a custom colorspace, throw a Set this's fill
+ style to the result of converting the given value into an sRGB CSS color using its
+ toRGB
+ function. Return. Set this's fill
style to the given value. If the given value is a CSSColorValue, then: If the given value has a custom colorspace, throw a Set this's stroke
+ style to the result of converting the given value into an sRGB CSS color using its
+ toRGB() function. Return. If the given value is a Such objects have associated fill
style and stroke style
values, which are either CSS colors, When the value is a CSS color, it must not be affected by the transformation matrix when used
to draw on bitmaps. When set to a When set to a The CanvasPattern
s, or CanvasGradient
s.
+ values, which are either CSS colors, CanvasPattern
s, CanvasGradient
s,
+ or CSSColorValues.
Initially, both must be the result of parsing
the string "#000000
".CanvasPattern
or CanvasGradient
object,
- changes made to the object after the assignment do affect subsequent stroking or filling of
+ CanvasPattern
, a CanvasGradient
, or
+ a CSSColorValue object, changes made to
+ the object after the assignment do affect subsequent stroking or filling of
shapes.this's origin-clean flag to
false.
+
TypeError
+
TypeError
CanvasPattern
object that is marked as not origin-clean, then set
this's origin-clean flag to
From 49257317ef9c59a43404e53d42e7f2517aab196d Mon Sep 17 00:00:00 2001
From: Aaron Krajeski CanvasPattern
s, CanvasGradient
s,
- or CSSColorValues.
- Initially, both must be the result of parsing
- the string "#000000
".#000000
".CanvasPattern
, a CanvasGradient
, or
- a CSSColorValue object, changes made to
- the object after the assignment do affect subsequent stroking or filling of
- shapes.CanvasPattern
, a CanvasGradient
, or a CSSColorValue object, changes made to the object after the assignment do affect subsequent stroking or filling of shapes.fillStyle
getter steps are:
If the given value is a CSSColorValue, then:
If the given value has a custom colorspace, throw a TypeError
Set this's fill - style to the result of converting the given value into an sRGB CSS color using its - toRGB - function.
Return.
If the given value is a CSSColorValue, then:
+If the given value has a custom color space, throw a TypeError
.
Set this's fill + style to the result of converting the given value into an sRGB CSS color using itstoRGB function.
Return.
Set this's fill style to the given value.
If the given value is a CSSColorValue, then:
If the given value has a custom colorspace, throw a TypeError
Set this's stroke - style to the result of converting the given value into an sRGB CSS color using its - toRGB() function.
Return.
If the given value is a CSSColorValue, then:
+If the given value has a custom color space, throw a TypeError
.
Set this's stroke style to the result of converting the given value into an sRGB CSS color using itstoRGB function.
Return.
If the given value is a Can be set, to change the fill style. The style can be either a string containing a CSS color, a CanvasPattern
object that is marked as not origin-clean, then set
From 768954af5345a9e2652eb9af7d75fde1b9d8cc6e Mon Sep 17 00:00:00 2001
From: Aaron Krajeski CanvasGradient
,
- CanvasPattern
or CSSColorValue object. Invalid values are ignored.CanvasPattern
or
+ CSSColorValue
+ object. Invalid values are ignored.
strokeStyle
[ = value ]Can be set, to change the stroke style.
The style can be either a string containing a CSS color, a CanvasGradient
,
- CanvasPattern
or CSSColorValue object. Invalid values are ignored.
CanvasPattern
or CSSColorValue object. Invalid
+ values are ignored.
@@ -63254,12 +63257,16 @@ try {
Such objects have associated fill
style and stroke style
values, which are either CSS colors, CanvasPattern
s, CanvasGradient
s,
- or CSSColorValues. Initially, both must be the result of parsing the string "#000000
".
#000000
".
When the value is a CSS color, it must not be affected by the transformation matrix when used to draw on bitmaps.
-When set to a CanvasPattern
, a CanvasGradient
, or a CSSColorValue object, changes made to the object after the assignment do affect subsequent stroking or filling of shapes.
When set to a CanvasPattern
, a CanvasGradient
, or a
+ CSSColorValue object, changes made to the object after the
+ assignment do affect subsequent stroking or filling of shapes.
The fillStyle
getter steps are:
If the given value has a custom color space, throw a TypeError
.
Set this's fill - style to the result of converting the given value into an sRGB CSS color using itstoRGB function.
Return.
If the given value has a custom color space, throw a TypeError
.
Set this's stroke style to the result of converting the given value into an sRGB CSS color using itstoRGB function.
Set this's + stroke style to the result + of converting the given value into an sRGB CSS color using its + toRGB function.
Return.
The following terms are defined in CSSColorValue objects:
+ +The following terms are defined in CSS Images:
CSSColorValue
) strokeStyle; // (default black)
+ attribute (DOMString or CanvasGradient or CanvasPattern or CSSColorValue
) fillStyle; // (default black)
CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1);
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
CanvasPattern? createPattern(CanvasImageSource image, [LegacyNullToEmptyString] DOMString repetition);
@@ -63209,9 +63216,7 @@ try {
Can be set, to change the fill style.
The style can be either a string containing a CSS color, a CanvasGradient
,
- CanvasPattern
or
- CSSColorValue
- object. Invalid values are ignored.
CanvasPattern
or CSSColorValue
object. Invalid values are ignored.
strokeStyle
[ = value ]Can be set, to change the stroke style.
The style can be either a string containing a CSS color, a CanvasGradient
,
- CanvasPattern
or CSSColorValue object. Invalid
- values are ignored.
CanvasPattern
or CSSColorValue
object. Invalid values are ignored.
@@ -63257,7 +63261,7 @@ try {
Such objects have associated fill
style and stroke style
values, which are either CSS colors, CanvasPattern
s, CanvasGradient
s,
- or CSSColorValues. Initially, both must be the result of
+ or CSSColorValue
s. Initially, both must be the result of
parsing the string
"#000000
".
When set to a CanvasPattern
, a CanvasGradient
, or a
- CSSColorValue object, changes made to the object after the
- assignment do affect subsequent stroking or filling of shapes.
CSSColorValue
object, changes made to the object after the assignment do affect
+ subsequent stroking or filling of shapes.
The fillStyle
getter steps are:
If the given value is a CSSColorValue, then:
+If the given value is a CSSColorValue
, then:
If the given value has a custom color space, throw a TypeError
.
Set this's fill style to the result of converting the given value into an sRGB CSS color using its - toRGB - function.
toRGB
function.Return.
If the given value is a CSSColorValue, then:
+If the given value is a CSSColorValue
, then:
If the given value has a custom color space, throw a TypeError
.