@@ -92439,20 +92439,19 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92439
92439
92440
92440
<ol>
92441
92441
92442
- <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
92443
- but zero, return a promise rejected with an <span>"<code>IndexSizeError</code>"</span>
92444
- <code>DOMException</code> and abort these steps.</p></li>
92442
+ <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified but zero, return a
92443
+ promise rejected with a <code data-x="js-RangeError">RangeError</code>.</p></li>
92445
92444
92446
92445
<li><p>If <var>image</var> is not <span data-x="img-all">completely available</span>, then
92447
92446
return a promise rejected with an <span>"<code>InvalidStateError</code>"</span>
92448
- <code>DOMException</code> and abort these steps .</p></li>
92447
+ <code>DOMException</code>.</p></li>
92449
92448
92450
92449
<li><p>If <var>image</var>'s media data has no <span>intrinsic dimensions</span> (e.g. it's a
92451
92450
vector graphic with no specified content size), and both or either of the <dfn><code
92452
92451
data-x="dom-ImageBitmapOptions-resizeWidth">resizeWidth</code></dfn> and <dfn><code
92453
92452
data-x="dom-ImageBitmapOptions-resizeHeight">resizeHeight</code></dfn> options are not specified,
92454
92453
then return a promise rejected with an <span>"<code>InvalidStateError</code>"</span>
92455
- <code>DOMException</code> and abort these steps .</p></li>
92454
+ <code>DOMException</code>.</p></li>
92456
92455
92457
92456
<li><p>If <var>image</var>'s media data has no <span>intrinsic dimensions</span> (e.g. it's a vector
92458
92457
graphics with no specified content size), it should be rendered to a bitmap of the size
@@ -92462,13 +92461,11 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92462
92461
<li><p>If the <var>sw</var> and <var>sh</var> arguments are not specified and
92463
92462
<var>image</var>'s media data has both or either of its <span>intrinsic width</span> and
92464
92463
<span>intrinsic height</span> values equal to 0, then return a promise rejected with an
92465
- <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code> and abort these
92466
- steps.</p></li>
92464
+ <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code>.</p></li>
92467
92465
92468
92466
<li><p>If the <var>sh</var> argument is not specified and <var>image</var>'s media data has
92469
92467
an <span>intrinsic height</span> of 0, then return a promise rejected with an
92470
- <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code> and abort these
92471
- steps.</p></li>
92468
+ <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code>.</p></li>
92472
92469
92473
92470
<li><p>Create a new <code>ImageBitmap</code> object.</p></li>
92474
92471
@@ -92502,9 +92499,8 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92502
92499
92503
92500
<ol>
92504
92501
92505
- <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
92506
- but zero, return a promise rejected with an <span>"<code>IndexSizeError</code>"</span>
92507
- <code>DOMException</code> and abort these steps.</p></li>
92502
+ <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified but zero, return a
92503
+ promise rejected with a <code data-x="js-RangeError">RangeError</code>.</p></li>
92508
92504
92509
92505
<li><p>If the <code>video</code> element's <code
92510
92506
data-x="dom-media-networkState">networkState</code> attribute is <code
@@ -92549,9 +92545,8 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92549
92545
92550
92546
<ol>
92551
92547
92552
- <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
92553
- but zero, return a promise rejected with an <span>"<code>IndexSizeError</code>"</span>
92554
- <code>DOMException</code> and abort these steps.</p></li>
92548
+ <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified but zero, return a
92549
+ promise rejected with a <code data-x="js-RangeError">RangeError</code>.</p></li>
92555
92550
92556
92551
<li><p>If the <code>canvas</code> element's bitmap has either a horizontal dimension or a
92557
92552
vertical dimension equal to zero, then return a promise rejected with an
@@ -92587,9 +92582,8 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92587
92582
92588
92583
<ol>
92589
92584
92590
- <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
92591
- but zero, return a promise rejected with an <span>"<code>IndexSizeError</code>"</span>
92592
- <code>DOMException</code> and abort these steps.</p></li>
92585
+ <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified but zero, return a
92586
+ promise rejected with a <code data-x="js-RangeError">RangeError</code>.</p></li>
92593
92587
92594
92588
<li><p>Return a new promise, but continue running these steps
92595
92589
<span>in parallel</span>.</p></li>
@@ -92634,9 +92628,8 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92634
92628
92635
92629
<ol>
92636
92630
92637
- <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
92638
- but zero, return a promise rejected with an <span>"<code>IndexSizeError</code>"</span>
92639
- <code>DOMException</code> and abort these steps.</p></li>
92631
+ <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified but zero, return a
92632
+ promise rejected with a <code data-x="js-RangeError">RangeError</code>.</p></li>
92640
92633
92641
92634
<li><p>If the <var>image</var> object's <code data-x="dom-imagedata-data">data</code> attribute
92642
92635
value's <span>[[Detached]]</span> internal slot value is true, return a promise rejected with
@@ -92665,9 +92658,8 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
92665
92658
92666
92659
<ol>
92667
92660
92668
- <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
92669
- but zero, return a promise rejected with an <span>"<code>IndexSizeError</code>"</span>
92670
- <code>DOMException</code> and abort these steps.</p></li>
92661
+ <li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified but zero, return a
92662
+ promise rejected with a <code data-x="js-RangeError">RangeError</code>.</p></li>
92671
92663
92672
92664
<li><p>If <var>image</var>'s <span>[[Detached]]</span> internal slot value is true, return a
92673
92665
promise rejected with an <span>"<code>InvalidStateError</code>"</span>
0 commit comments