@@ -3726,7 +3726,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
3726
3726
spec=GEOMETRY></p>
3727
3727
3728
3728
<ul class="brief">
3729
- <li><dfn data-x-href="https://drafts.fxtf.org/geometry/#dommatrix"><code>DOMMatrix</code></dfn> interface</li>
3729
+ <li><dfn data-x-href="https://drafts.fxtf.org/geometry/#dommatrix"><code>DOMMatrix</code></dfn> interface, and associated
3730
+ <dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-m11-element">m11 element</dfn>,
3731
+ <dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-m12-element">m12 element</dfn>,
3732
+ <dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-m21-element">m21 element</dfn>,
3733
+ <dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-m22-element">m22 element</dfn>,
3734
+ <dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-m41-element">m41 element</dfn>, and
3735
+ <dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-m42-element">m42 element</dfn></li>
3730
3736
<li><dfn data-x-href="https://drafts.fxtf.org/geometry/#dictdef-dommatrix2dinit"><code>DOMMatrix2DInit</code></dfn> and
3731
3737
<dfn data-x-href="https://drafts.fxtf.org/geometry/#dictdef-dommatrixinit"><code>DOMMatrixInit</code></dfn> dictionaries</li>
3732
3738
<li>The <dfn data-x-href="https://drafts.fxtf.org/geometry/#create-a-dommatrix-from-the-dictionary">create a <code>DOMMatrix</code> from a dictionary</dfn> algorithm for <code>DOMMatrix2DInit</code> or <code>DOMMatrixInit</code></li>
@@ -60565,7 +60571,7 @@ idea from Mihai:
60565
60571
<li><p>Let <var>a</var> be the argument.</p></li>
60566
60572
60567
60573
<li><p>If any value in <var>a</var> is not finite (e.g. an Infinity or a NaN value), or
60568
- if any value is negative (less than zero), then abort these steps (without throwing an exception;
60574
+ if any value is negative (less than zero), then return (without throwing an exception;
60569
60575
user agents could show a message on a developer console, though, as that would be helpful for
60570
60576
debugging).</p></li>
60571
60577
@@ -61713,7 +61719,7 @@ try {
61713
61719
method, when invoked, must run these steps:</p>
61714
61720
61715
61721
<ol>
61716
- <li><p>If either of the arguments are infinite or NaN, then abort these steps .</p></li>
61722
+ <li><p>If either of the arguments are infinite or NaN, then return .</p></li>
61717
61723
61718
61724
<li><p>Create a new subpath with the specified point as its first (and only) point.</p></li>
61719
61725
</ol>
@@ -61746,7 +61752,7 @@ try {
61746
61752
method, when invoked, must run these steps:</p>
61747
61753
61748
61754
<ol>
61749
- <li><p>If either of the arguments are infinite or NaN, then abort these steps .</p></li>
61755
+ <li><p>If either of the arguments are infinite or NaN, then return .</p></li>
61750
61756
61751
61757
<li><p>If the object's path has no subpaths, then <span>ensure there is a subpath</span> for
61752
61758
<span data-x="">(<var>x</var>, <var>y</var>)</span>.</p></li>
@@ -61761,7 +61767,7 @@ try {
61761
61767
steps:</p>
61762
61768
61763
61769
<ol>
61764
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
61770
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
61765
61771
61766
61772
<li><p><span>Ensure there is a subpath</span> for <span data-x="">(<var>cpx</var>,
61767
61773
<var>cpy</var>)</span></p></li>
@@ -61778,7 +61784,7 @@ try {
61778
61784
method, when invoked, must run these steps:</p>
61779
61785
61780
61786
<ol>
61781
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
61787
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
61782
61788
61783
61789
<li><p><span>Ensure there is a subpath</span> for <span data-x="">(<var>cp1x</var>,
61784
61790
<var>cp1y</var>)</span>.</p></li>
@@ -61797,7 +61803,7 @@ try {
61797
61803
when invoked, must run these steps:</p>
61798
61804
61799
61805
<ol>
61800
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
61806
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
61801
61807
61802
61808
<li><p><span>Ensure there is a subpath</span> for <span data-x="">(<var>x1</var>,
61803
61809
<var>y1</var>)</span>.</p></li>
@@ -61853,7 +61859,7 @@ try {
61853
61859
steps:</p>
61854
61860
61855
61861
<ol>
61856
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
61862
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
61857
61863
61858
61864
<li><p>If either <var>radiusX</var> or <var>radiusY</var> are negative, then throw an
61859
61865
<span>"<code>IndexSizeError</code>"</span> <code>DOMException</code>.</p></li>
@@ -61898,7 +61904,7 @@ try {
61898
61904
<var>h</var>)</code></dfn> method, when invoked, must run these steps:</p>
61899
61905
61900
61906
<ol>
61901
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
61907
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
61902
61908
61903
61909
<li><p>Create a new subpath containing just the four points (<var>x</var>, <var>y</var>),
61904
61910
(<var>x</var>+<var>w</var>, <var>y</var>), (<var>x</var>+<var>w</var>,
@@ -62075,14 +62081,18 @@ try {
62075
62081
62076
62082
<ol>
62077
62083
62078
- <li><p>If the <code>Path2D</code> object <var>b</var> has no subpaths, then abort these
62079
- steps.</p></li>
62080
-
62081
- <li><p>Create a copy of all the subpaths in <var>b</var>. Let this copy be known as <var>c</var>.</p></li>
62084
+ <li><p>If the <code>Path2D</code> object <var>b</var> has no subpaths, then return.</p></li>
62082
62085
62083
62086
<li><p>Let <var>matrix</var> be the result of <span data-x="create a DOMMatrix from a
62084
- dictionary">creating a <code>DOMMatrix</code> from a dictionary</span>
62085
- <var>transform</var>, with <var>ignore3D</var> set to true.</p></li>
62087
+ dictionary">creating a <code>DOMMatrix</code> from the dictionary</span> <var>transform</var>,
62088
+ with <var>ignore3D</var> set to true.</p></li>
62089
+
62090
+ <li><p>If one or more of <var>matrix</var>'s <span>m11 element</span>, <span>m12 element</span>,
62091
+ <span>m21 element</span>, <span>m22 element</span>, <span>m41 element</span>, or <span>m42
62092
+ element</span> are infinite or NaN, then return.</p></li>
62093
+
62094
+ <li><p>Create a copy of all the subpaths in <var>b</var>. Let this copy be known as
62095
+ <var>c</var>.</p></li>
62086
62096
62087
62097
<li><p>Transform all the coordinates and lines in <var>c</var> by the transform matrix
62088
62098
<var>matrix</var>.</p></li>
@@ -62092,7 +62102,8 @@ try {
62092
62102
62093
62103
<li><p>Add all the subpaths in <var>c</var> to <var>a</var>.</p></li>
62094
62104
62095
- <li><p>Create a new subpath in <var>a</var> with (<var>x</var>, <var>y</var>) as the only point in the subpath.</p></li>
62105
+ <li><p>Create a new subpath in <var>a</var> with (<var>x</var>, <var>y</var>) as the only point
62106
+ in the subpath.</p></li>
62096
62107
62097
62108
</ol>
62098
62109
@@ -62206,7 +62217,7 @@ try {
62206
62217
method, when invoked, must run these steps:</p>
62207
62218
62208
62219
<ol>
62209
- <li><p>If either of the arguments are infinite or NaN, then abort these steps .</p></li>
62220
+ <li><p>If either of the arguments are infinite or NaN, then return .</p></li>
62210
62221
62211
62222
<li><p>Add the scaling transformation described by the arguments to the <span>current
62212
62223
transformation matrix</span>. The <var>x</var> argument represents the scale factor in the
@@ -62218,7 +62229,7 @@ try {
62218
62229
when invoked, must run these steps:</p>
62219
62230
62220
62231
<ol>
62221
- <li><p>If <var>angle</var> is infinite or NaN, then abort these steps .</p></li>
62232
+ <li><p>If <var>angle</var> is infinite or NaN, then return .</p></li>
62222
62233
62223
62234
<li><p>Add the rotation transformation described by the argument to the <span>current
62224
62235
transformation matrix</span>. The <var>angle</var> argument represents a clockwise rotation angle
@@ -62229,7 +62240,7 @@ try {
62229
62240
<var>y</var>)</code></dfn> method, when invoked, must run these steps:</p>
62230
62241
62231
62242
<ol>
62232
- <li><p>If either of the arguments are infinite or NaN, then abort these steps .</p></li>
62243
+ <li><p>If either of the arguments are infinite or NaN, then return .</p></li>
62233
62244
62234
62245
<li><p>Add the translation transformation described by the arguments to the <span>current
62235
62246
transformation matrix</span>. The <var>x</var> argument represents the translation distance in
@@ -62242,7 +62253,7 @@ try {
62242
62253
run these steps:</p>
62243
62254
62244
62255
<ol>
62245
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
62256
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
62246
62257
62247
62258
<li><p>Replace the <span>current transformation matrix</span> with the result of multiplying the
62248
62259
current transformation matrix with the matrix described by:</p></li>
@@ -62291,7 +62302,7 @@ try {
62291
62302
run these steps:</p>
62292
62303
62293
62304
<ol>
62294
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
62305
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
62295
62306
62296
62307
<li><p>Reset the <span>current transformation matrix</span> to the identity matrix.</p></li>
62297
62308
@@ -62301,9 +62312,19 @@ try {
62301
62312
</ol>
62302
62313
62303
62314
<p>The <dfn><code data-x="">setTransform(<var>transform</var>)</code></dfn> method, when invoked,
62304
- must reset the <span>current transformation matrix</span> to the value represented by the result
62305
- of <span data-x="create a DOMMatrix from a dictionary">creating a <code>DOMMatrix</code> from a
62306
- dictionary</span> <var>transform</var>, with <var>ignore3D</var> set to true.</p>
62315
+ must run these steps:</p>
62316
+
62317
+ <ol>
62318
+ <li><p>Let <var>matrix</var> be the result of <span data-x="create a DOMMatrix from a
62319
+ dictionary">creating a <code>DOMMatrix</code> from the dictionary</span> <var>transform</var>,
62320
+ with <var>ignore3D</var> set to true.</p>
62321
+
62322
+ <li><p>If one or more of <var>matrix</var>'s <span>m11 element</span>, <span>m12 element</span>,
62323
+ <span>m21 element</span>, <span>m22 element</span>, <span>m41 element</span>, or <span>m42
62324
+ element</span> are infinite or NaN, then return.</p></li>
62325
+
62326
+ <li><p>Reset the <span>current transformation matrix</span> to <var>matrix</var>.</p></li>
62327
+ </ol>
62307
62328
62308
62329
<p>The <dfn><code data-x="dom-context-2d-resetTransform">resetTransform()</code></dfn> method,
62309
62330
when invoked, must reset the <span>current transformation matrix</span> to the identity
@@ -62750,9 +62771,19 @@ try {
62750
62771
62751
62772
<p>The <dfn><code
62752
62773
data-x="dom-canvaspattern-setTransform">setTransform(<var>transform</var>)</code></dfn> method,
62753
- when invoked, must reset the pattern's transformation matrix to the value represented by the
62754
- result of <span data-x="create a DOMMatrix from a dictionary">creating a <code>DOMMatrix</code>
62755
- from a dictionary</span> <var>transform</var>, with <var>ignore3D</var> set to true.</p>
62774
+ when invoked, must run these steps:</p>
62775
+
62776
+ <ol>
62777
+ <li><p>Let <var>matrix</var> be the result of <span data-x="create a DOMMatrix from a
62778
+ dictionary">creating a <code>DOMMatrix</code> from the dictionary</span> <var>transform</var>,
62779
+ with <var>ignore3D</var> set to true.</p>
62780
+
62781
+ <li><p>If one or more of <var>matrix</var>'s <span>m11 element</span>, <span>m12 element</span>,
62782
+ <span>m21 element</span>, <span>m22 element</span>, <span>m41 element</span>, or <span>m42
62783
+ element</span> are infinite or NaN, then return.</p></li>
62784
+
62785
+ <li><p>Reset the pattern's transformation matrix to <var>matrix</var>.</p></li>
62786
+ </ol>
62756
62787
62757
62788
<p>When a pattern is to be rendered within an area, the user agent must run the following steps to
62758
62789
determine what is rendered:</p>
@@ -62869,7 +62900,7 @@ try {
62869
62900
62870
62901
<ol>
62871
62902
62872
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
62903
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
62873
62904
62874
62905
<li><p>Let <var>pixels</var> be the set of pixels in the specified rectangle that also
62875
62906
intersect the current <span>clipping region</span>.</p></li>
@@ -62886,7 +62917,7 @@ try {
62886
62917
<var>w</var>, <var>h</var>)</code></dfn> method, when invoked, must must run these steps:</p>
62887
62918
62888
62919
<ol>
62889
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
62920
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
62890
62921
62891
62922
<li><p>If either <var>w</var> or <var>h</var> are zero, then abort these steps.</p></li>
62892
62923
@@ -62898,7 +62929,7 @@ try {
62898
62929
<var>w</var>, <var>h</var>)</code></dfn> method, when invoked, must run these steps:</p>
62899
62930
62900
62931
<ol>
62901
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
62932
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
62902
62933
62903
62934
<li><p>Take the result of <span data-x="trace a path">tracing the path</span> described below,
62904
62935
using the <code>CanvasPathDrawingStyles</code> interface's line styles, and fill it with the
@@ -62983,7 +63014,7 @@ try {
62983
63014
are invoked, the user agent must run these steps:</p>
62984
63015
62985
63016
<ol>
62986
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
63017
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
62987
63018
62988
63019
<li><p>Run the <span>text preparation algorithm</span>, passing it <var>text</var>, the object
62989
63020
implementing the <code>CanvasText</code> interface, and, if the <var>maxWidth</var> argument was
@@ -63713,7 +63744,7 @@ v6DVT (also check for '- -' bits in the part above) -->
63713
63744
agent must run these steps:</p>
63714
63745
63715
63746
<ol>
63716
- <li><p>If any of the arguments are infinite or NaN, then abort these steps .</p></li>
63747
+ <li><p>If any of the arguments are infinite or NaN, then return .</p></li>
63717
63748
63718
63749
<li><p><span>Check the usability of the <var>image</var> argument</span>. If this
63719
63750
returns <i>aborted</i>, then an exception has been thrown and the method doesn't return anything;
0 commit comments