@@ -63721,13 +63721,20 @@ v6DVT (also check for '- -' bits in the part above) -->
6372163721 used to instantiate new <code>ImageData</code> objects.</p>
6372263722
6372363723 <p>When the <code data-x="dom-imagedata">ImageData()</code> constructor is invoked with two
63724- numeric arguments <var>sw</var> and <var>sh</var>, it must <span>create an <code>ImageData</code>
63725- object</span> with parameter <var>pixelsPerRow</var> set to <var>sw</var>, and <var>rows</var> set
63726- to <var>sh</var>. The image data of the newly created <code>ImageData</code> object must be
63727- initialized to <span>transparent black</span>. If both <var>sw</var> and <var>sh</var> are
63728- nonzero, then return the new <code>ImageData</code> object. If one or both of <var>sw</var> and
63729- <var>sh</var> are zero, then the constructor must throw an
63730- <span>"<code>IndexSizeError</code>"</span> <code>DOMException</code> instead.</p>
63724+ numeric arguments <var>sw</var> and <var>sh</var>, it must run these steps:</p>
63725+
63726+ <ol>
63727+ <li><p>If one or both of <var>sw</var> and <var>sh</var> are zero, then throw an
63728+ <span>"<code>IndexSizeError</code>"</span> <code>DOMException</code>.</p></li>
63729+
63730+ <li><p><span>Create an <code>ImageData</code> object</span> with parameter
63731+ <var>pixelsPerRow</var> set to <var>sw</var>, and <var>rows</var> set to <var>sh</var>.</p></li>
63732+
63733+ <li><p>Initialize the image data of the newly created <code>ImageData</code> object to
63734+ <span>transparent black</span>.</p></li>
63735+
63736+ <li><p>Return the newly created <code>ImageData</code> object.</p></li>
63737+ </ol>
6373163738
6373263739 <p>When the <code data-x="dom-imagedata">ImageData()</code> constructor is invoked with its first
6373363740 argument being an <code data-x="idl-Uint8ClampedArray">Uint8ClampedArray</code> <var>source</var>
0 commit comments