diff --git a/complete.html b/complete.html index 8d273d89578..c558afd1bc1 100644 --- a/complete.html +++ b/complete.html @@ -37039,7 +37039,7 @@
4.8.11.1.4 Line styles

Sets the current line dash pattern (as used when stroking). The - argument is an array of distances for which to alternately have + argument is a list of distances for which to alternately have the line on and the line off.

@@ -37139,14 +37139,12 @@
4.8.11.1.4 Line styles

When the setLineDash() method is invoked, it must run the following steps:

-
  1. Let a be a copy of the array provided as - the argument.

  2. +
    1. Let a be the argument.

    2. -
    3. If any value in the array is not finite (e.g. an Infinity or - a NaN value), or if any value is negative (less than zero), then - abort these steps (without throwing an exception; user agents could - show a message on a developer console, though, as that would be - helpful for debugging).

    4. +
    5. If any value in a is not finite (e.g. an Infinity or a NaN value), or + if any value is negative (less than zero), then abort these steps (without throwing an exception; + user agents could show a message on a developer console, though, as that would be helpful for + debugging).

    6. If the number of elements in a is odd, then let a be the concatentation of two copies @@ -37154,10 +37152,9 @@

      4.8.11.1.4 Line styles
    7. Let the object's dash list be a.

    8. -

    When the getLineDash() - method is invoked, it must return a newly created array whose values - are the values of the object's dash list, in the same - order.

    +

When the getLineDash() method is + invoked, it must return a sequence whose values are the values of the object's dash + list, in the same order.

It is sometimes useful to change the "phase" of the dash pattern, e.g. to achieve a "marching ants" effect. The phase can be set using diff --git a/index b/index index 8d273d89578..c558afd1bc1 100644 --- a/index +++ b/index @@ -37039,7 +37039,7 @@ idea from Mihai:

Sets the current line dash pattern (as used when stroking). The - argument is an array of distances for which to alternately have + argument is a list of distances for which to alternately have the line on and the line off.

@@ -37139,14 +37139,12 @@ idea from Mihai:

When the setLineDash() method is invoked, it must run the following steps:

-
  1. Let a be a copy of the array provided as - the argument.

  2. +
    1. Let a be the argument.

    2. -
    3. If any value in the array is not finite (e.g. an Infinity or - a NaN value), or if any value is negative (less than zero), then - abort these steps (without throwing an exception; user agents could - show a message on a developer console, though, as that would be - helpful for debugging).

    4. +
    5. If any value in a is not finite (e.g. an Infinity or a NaN value), or + if any value is negative (less than zero), then abort these steps (without throwing an exception; + user agents could show a message on a developer console, though, as that would be helpful for + debugging).

    6. If the number of elements in a is odd, then let a be the concatentation of two copies @@ -37154,10 +37152,9 @@ idea from Mihai:

    7. Let the object's dash list be a.

    8. -

    When the getLineDash() - method is invoked, it must return a newly created array whose values - are the values of the object's dash list, in the same - order.

    +

When the getLineDash() method is + invoked, it must return a sequence whose values are the values of the object's dash + list, in the same order.

It is sometimes useful to change the "phase" of the dash pattern, e.g. to achieve a "marching ants" effect. The phase can be set using diff --git a/source b/source index b419df14f0e..ed232ffa3ae 100644 --- a/source +++ b/source @@ -43313,7 +43313,7 @@ idea from Mihai:

Sets the current line dash pattern (as used when stroking). The - argument is an array of distances for which to alternately have + argument is a list of distances for which to alternately have the line on and the line off.

@@ -43434,14 +43434,12 @@ idea from Mihai:
    -
  1. Let a be a copy of the array provided as - the argument.

  2. +
  3. Let a be the argument.

  4. -
  5. If any value in the array is not finite (e.g. an Infinity or - a NaN value), or if any value is negative (less than zero), then - abort these steps (without throwing an exception; user agents could - show a message on a developer console, though, as that would be - helpful for debugging).

  6. +
  7. If any value in a is not finite (e.g. an Infinity or a NaN value), or + if any value is negative (less than zero), then abort these steps (without throwing an exception; + user agents could show a message on a developer console, though, as that would be helpful for + debugging).

  8. If the number of elements in a is odd, then let a be the concatentation of two copies @@ -43452,11 +43450,9 @@ idea from Mihai:

-

When the getLineDash() - method is invoked, it must return a newly created array whose values - are the values of the object's dash list, in the same - order.

+

When the getLineDash() method is + invoked, it must return a sequence whose values are the values of the object's dash + list, in the same order.

It is sometimes useful to change the "phase" of the dash pattern, e.g. to achieve a "marching ants" effect. The phase can be set using