diff --git a/source b/source index 4a6c9a1216e..37ded9174f1 100644 --- a/source +++ b/source @@ -3384,6 +3384,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
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);
@@ -63208,8 +63215,8 @@ try {
Can be set, to change the fill style.
-The style can be either a string containing a CSS color, or a CanvasGradient
or
- CanvasPattern
object. Invalid values are ignored.
The style can be either a string containing a CSS color, a CanvasGradient
,
+ 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, or a CanvasGradient
or
- CanvasPattern
object. Invalid values are ignored.
The style can be either a string containing a CSS color, a CanvasGradient
,
+ CanvasPattern
or CSSColorValue
object. Invalid values are ignored.
Such objects have associated fill
style and stroke style
- values, which are either CSS colors, CanvasPattern
s, or CanvasGradient
s.
- Initially, both must be the result of parsing
- the string "#000000
".
CanvasPattern
s, CanvasGradient
s,
+ or CSSColorValue
s. Initially, both must be the result of
+ parsing the string
+ "#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
or CanvasGradient
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 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.
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 color space, 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 CanvasPattern
object that is marked as not origin-clean, then set
this's origin-clean flag to
@@ -123928,6 +123961,9 @@ INSERT INTERFACES HERE