Skip to content

Commit 9b08275

Browse files
zcorpansvgeesus
authored andcommitted
Actually require is 2D to be set to false in m13 setter
There was no "must" to set is 2D for m13 etc setters, and it was stated "at a distance". This makes it a requirement, inline with the definition for each setter.
1 parent 1b0ef44 commit 9b08275

File tree

1 file changed

+67
-83
lines changed

1 file changed

+67
-83
lines changed

geometry/Overview.bs

Lines changed: 67 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -157,24 +157,20 @@ steps:
157157

158158
<div dfn-type=attribute dfn-for="DOMPointReadOnly, DOMPoint">
159159
<p>The <dfn><code>x</code></dfn> attribute, on getting, must return the <a for=point>x
160-
coordinate</a> value of the object it was invoked on. For the {{DOMPoint}} interface, setting the
161-
{{DOMPoint/x}} attribute must set the <a for=point>x coordinate</a> value of the object it was
162-
invoked on to the new value.
160+
coordinate</a> value. For the {{DOMPoint}} interface, setting the
161+
{{DOMPoint/x}} attribute must set the <a for=point>x coordinate</a> to the new value.
163162

164163
<p>The <dfn><code>y</code></dfn> attribute, on getting, must return the <a for=point>y
165-
coordinate</a> value of the object it was invoked on. For the {{DOMPoint}} interface, setting the
166-
{{DOMPoint/y}} attribute must set the <a for=point>y coordinate</a> value of the object it was
167-
invoked on to the new value.
164+
coordinate</a> value. For the {{DOMPoint}} interface, setting the
165+
{{DOMPoint/y}} attribute must set the <a for=point>y coordinate</a> to the new value.
168166

169167
<p>The <dfn><code>z</code></dfn> attribute, on getting, must return the <a for=point>z
170-
coordinate</a> value of the object it was invoked on. For the {{DOMPoint}} interface, setting the
171-
{{DOMPoint/z}} attribute must set the <a for=point>z coordinate</a> value of the object it was
172-
invoked on to the new value.
168+
coordinate</a> value. For the {{DOMPoint}} interface, setting the
169+
{{DOMPoint/z}} attribute must set the <a for=point>z coordinate</a> to the new value.
173170

174171
<p>The <dfn><code>w</code></dfn> attribute, on getting, must return the <a for=point>w
175-
perspective</a> value of the object it was invoked on. For the {{DOMPoint}} interface, setting the
176-
{{DOMPoint/w}} attribute must set the <a for=point>w perspective</a> value of the object it was
177-
invoked on to the new value.
172+
perspective</a> value. For the {{DOMPoint}} interface, setting the
173+
{{DOMPoint/w}} attribute must set the <a for=point>w perspective</a> to the new value.
178174
</div>
179175

180176
<p>The <dfn dfn-type=method dfn-for=DOMPointReadOnly>matrixTransform(<var>matrix</var>)</dfn>
@@ -340,40 +336,33 @@ steps:
340336

341337
<div dfn-type=attribute dfn-for="DOMRectReadOnly DOMRect">
342338
<p>The <dfn><code>x</code></dfn> attribute, on getting, must return the <a for=rectangle>x
343-
coordinate</a> value of the object it was invoked on. For the {{DOMRect}} interface, setting the
344-
{{DOMRect/x}} attribute must set the <a for=rectangle>x coordinate</a> value of the object it was
345-
invoked on to the new value.
339+
coordinate</a> value. For the {{DOMRect}} interface, setting the
340+
{{DOMRect/x}} attribute must set the <a for=rectangle>x coordinate</a> to the new value.
346341

347342
<p>The <dfn><code>y</code></dfn> attribute, on getting, it must return the <a for=rectangle>y
348-
coordinate</a> value of the object it was invoked on. For the {{DOMRect}} interface, setting the
349-
{{DOMRect/y}} attribute must set the <a for=rectangle>y coordinate</a> value of the object it was
350-
invoked on to the new value.
343+
coordinate</a> value. For the {{DOMRect}} interface, setting the
344+
{{DOMRect/y}} attribute must set the <a for=rectangle>y coordinate</a> to the new value.
351345

352346
<p>The <dfn><code>width</code></dfn> attribute, on getting, must return the <a for=rectangle>width
353-
dimension</a> value of the object it was invoked on. For the {{DOMRect}} interface, setting the
354-
{{DOMRect/width}} attribute must set the <a for=rectangle>width dimension</a> value of the object
355-
it was invoked on to the new value.
347+
dimension</a> value. For the {{DOMRect}} interface, setting the
348+
{{DOMRect/width}} attribute must set the <a for=rectangle>width dimension</a> to the new value.
356349

357350
<p>The <dfn><code>height</code></dfn> attribute, on getting, must return the <a
358351
for=rectangle>height dimension</a> value. For the {{DOMRect}} interface, setting the
359352
{{DOMRect/height}} attribute must set the <a for=rectangle>height dimension</a> value to the new
360353
value.
361354

362355
<p>The <dfn><code>top</code></dfn> attribute, on getting, must return min(<a for=rectangle>y
363-
coordinate</a>, <a for=rectangle>y coordinate</a> + <a for=rectangle>height dimension</a>) of the
364-
object it was invoked on.
356+
coordinate</a>, <a for=rectangle>y coordinate</a> + <a for=rectangle>height dimension</a>).
365357

366358
<p>The <dfn><code>right</code></dfn> attribute, on getting, must return max(<a for=rectangle>x
367-
coordinate</a>, <a for=rectangle>x coordinate</a> + <a for=rectangle>width dimension</a>) of the
368-
object it was invoked on.
359+
coordinate</a>, <a for=rectangle>x coordinate</a> + <a for=rectangle>width dimension</a>).
369360

370361
<p>The <dfn><code>bottom</code></dfn> attribute, on getting, must return max(<a for=rectangle>y
371-
coordinate</a>, <a for=rectangle>y coordinate</a> + <a for=rectangle>height dimension</a>) of the
372-
object it was invoked on.
362+
coordinate</a>, <a for=rectangle>y coordinate</a> + <a for=rectangle>height dimension</a>).
373363

374364
<p>The <dfn><code>left</code></dfn> attribute, on getting, must return min(<a for=rectangle>x
375-
coordinate</a>, <a for=rectangle>x coordinate</a> + <a for=rectangle>width dimension</a>) of the
376-
object it was invoked on.
365+
coordinate</a>, <a for=rectangle>x coordinate</a> + <a for=rectangle>width dimension</a>).
377366
</div>
378367

379368
<p>For historical reasons, {{Window}} objects must also have a writable, configurable,
@@ -1078,93 +1067,88 @@ method on {{DOMMatrix}} must follow these steps:
10781067
<h3 id=dommatrix-attributes>DOMMatrix attributes</h3>
10791068

10801069
<p>The following attributes {{DOMMatrixReadOnly/m11}} to {{DOMMatrixReadOnly/m44}} correspond to the
1081-
16 items of the matrix interfaces. For the {{DOMMatrix}} interface, if the attributes
1082-
{{DOMMatrixReadOnly/m13}}, {{DOMMatrixReadOnly/m14}}, {{DOMMatrixReadOnly/m23}},
1083-
{{DOMMatrixReadOnly/m24}}, {{DOMMatrixReadOnly/m31}}, {{DOMMatrixReadOnly/m32}},
1084-
{{DOMMatrixReadOnly/m34}}, or {{DOMMatrixReadOnly/m43}} are set to something else than ''0'' or
1085-
{{DOMMatrixReadOnly/m33}}, {{DOMMatrixReadOnly/m44}} are set to something else than ''1'' set <a
1086-
for=matrix>is 2D</a> to <code>false</code>.
1070+
16 items of the matrix interfaces.
10871071

10881072
<div dfn-type=attribute dfn-for="DOMMatrixReadOnly, DOMMatrix">
10891073
<p>The <dfn><code>m11</code></dfn> and <dfn><code>a</code></dfn> attributes, on getting, must
1090-
return the <a for=matrix>m11 element</a> value of the object it was invoked on. For the
1091-
{{DOMMatrix}} interface, setting the {{DOMMatrix/m11}} or the {{DOMMatrix/a}} attribute must set
1092-
the <a for=matrix>m11 element</a> value of the object it was invoked on to the new value.
1074+
return the <a for=matrix>m11 element</a> value. For the {{DOMMatrix}} interface, setting the
1075+
{{DOMMatrix/m11}} or the {{DOMMatrix/a}} attribute must set the <a for=matrix>m11 element</a> to
1076+
the new value.
10931077

10941078
<p>The <dfn><code>m12</code></dfn> and <dfn><code>b</code></dfn> attributes, on getting, must
1095-
return the <a for=matrix>m12 element</a> value of the object it was invoked on. For the
1096-
{{DOMMatrix}} interface, setting the {{DOMMatrix/m12}} or the {{DOMMatrix/b}} attribute must set
1097-
the <a for=matrix>m12 element</a> value of the object it was invoked on to the new value.
1079+
return the <a for=matrix>m12 element</a> value. For the {{DOMMatrix}} interface, setting the
1080+
{{DOMMatrix/m12}} or the {{DOMMatrix/b}} attribute must set the <a for=matrix>m12 element</a> to
1081+
the new value.
10981082

10991083
<p>The <dfn><code>m13</code></dfn> attribute, on getting, must return the <a for=matrix>m13
1100-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1101-
{{DOMMatrix/m13}} attribute must set the <a for=matrix>m13 element</a> value of the object it was
1102-
invoked on to the new value.
1084+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m13}} attribute must
1085+
set the <a for=matrix>m13 element</a> to the new value and, if the new value is not ''0'', set <a
1086+
for=matrix>is 2D</a> to <code>false</code>.
11031087

11041088
<p>The <dfn><code>m14</code></dfn> attribute, on getting, must return the <a for=matrix>m14
1105-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1106-
{{DOMMatrix/m14}} attribute must set the <a for=matrix>m14 element</a> value of the object it was
1107-
invoked on to the new value.
1089+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m14}} attribute must
1090+
set the <a for=matrix>m14 element</a> to the new value and, if the new value is not ''0'', set <a
1091+
for=matrix>is 2D</a> to <code>false</code>.
11081092

11091093
<p>The <dfn><code>m21</code></dfn> and <dfn><code>c</code></dfn> attributes, on getting, must
1110-
return the <a for=matrix>m21 element</a> value of the object it was invoked on. For the
1111-
{{DOMMatrix}} interface, setting the {{DOMMatrix/m21}} or the {{DOMMatrix/c}} attribute must set
1112-
the <a for=matrix>m21 element</a> value of the object it was invoked on to the new value.
1094+
return the <a for=matrix>m21 element</a> value. For the {{DOMMatrix}} interface, setting the
1095+
{{DOMMatrix/m21}} or the {{DOMMatrix/c}} attribute must set the <a for=matrix>m21 element</a> to
1096+
the new value.
11131097

11141098
<p>The <dfn><code>m22</code></dfn> and <dfn><code>d</code></dfn> attributes, on getting, must
1115-
return the <a for=matrix>m22 element</a> value of the object it was invoked on. For the
1116-
{{DOMMatrix}} interface, setting the {{DOMMatrix/m22}} or the {{DOMMatrix/d}} attribute must set
1117-
the <a for=matrix>m22 element</a> value of the object it was invoked on to the new value.
1099+
return the <a for=matrix>m22 element</a> value. For the {{DOMMatrix}} interface, setting the
1100+
{{DOMMatrix/m22}} or the {{DOMMatrix/d}} attribute must set the <a for=matrix>m22 element</a> to
1101+
the new value.
11181102

11191103
<p>The <dfn><code>m23</code></dfn> attribute, on getting, must return the <a for=matrix>m23
1120-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1121-
{{DOMMatrix/m23}} attribute must set the <a for=matrix>m23 element</a> value of the object it was
1122-
invoked on to the new value.
1104+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m23}} attribute must
1105+
set the <a for=matrix>m23 element</a> to the new value and, if the new value is not ''0'', set <a
1106+
for=matrix>is 2D</a> to <code>false</code>.
11231107

11241108
<p>The <dfn><code>m24</code></dfn> attribute, on getting, must return the <a for=matrix>m24
1125-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1126-
{{DOMMatrix/m24}} attribute must set the <a for=matrix>m24 element</a> value of the object it was
1127-
invoked on to the new value.
1109+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m24}} attribute must
1110+
set the <a for=matrix>m24 element</a> to the new value and, if the new value is not ''0'', set <a
1111+
for=matrix>is 2D</a> to <code>false</code>.
11281112

11291113
<p>The <dfn><code>m31</code></dfn> attribute, on getting, must return the <a for=matrix>m31
1130-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1131-
{{DOMMatrix/m31}} attribute must set the <a for=matrix>m31 element</a> value of the object it was
1132-
invoked on to the new value.
1114+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m31}} attribute must
1115+
set the <a for=matrix>m31 element</a> to the new value and, if the new value is not ''0'', set <a
1116+
for=matrix>is 2D</a> to <code>false</code>.
11331117

11341118
<p>The <dfn><code>m32</code></dfn> attribute, on getting, must return the <a for=matrix>m32
1135-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1136-
{{DOMMatrix/m32}} attribute must set the <a for=matrix>m32 element</a> value of the object it was
1137-
invoked on to the new value.
1119+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m32}} attribute must
1120+
set the <a for=matrix>m32 element</a> to the new value and, if the new value is not ''0'', set <a
1121+
for=matrix>is 2D</a> to <code>false</code>.
11381122

11391123
<p>The <dfn><code>m33</code></dfn> attribute, on getting, must return the <a for=matrix>m33
1140-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1141-
{{DOMMatrix/m33}} attribute must set the <a for=matrix>m33 element</a> value of the object it was
1142-
invoked on to the new value.
1124+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m33}} attribute must
1125+
set the <a for=matrix>m33 element</a> to the new value and, if the new value is not ''1'', set <a
1126+
for=matrix>is 2D</a> to <code>false</code>.
11431127

11441128
<p>The <dfn><code>m34</code></dfn> attribute, on getting, must return the <a for=matrix>m34
1145-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1146-
{{DOMMatrix/m34}} attribute must set the <a for=matrix>m34 element</a> value of the object it was
1147-
invoked on to the new value.
1129+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m34}} attribute must
1130+
set the <a for=matrix>m34 element</a> to the new value and, if the new value is not ''0'', set <a
1131+
for=matrix>is 2D</a> to <code>false</code>.
11481132

11491133
<p>The <dfn><code>m41</code></dfn> and <dfn><code>e</code></dfn> attributes, on getting, must
1150-
return the <a for=matrix>m41 element</a> value of the object it was invoked on. For the
1151-
{{DOMMatrix}} interface, setting the {{DOMMatrix/m41}} or the {{DOMMatrix/e}} attribute must set
1152-
the <a for=matrix>m41 element</a> value of the object it was invoked on to the new value.
1134+
return the <a for=matrix>m41 element</a> value. For the {{DOMMatrix}} interface, setting the
1135+
{{DOMMatrix/m41}} or the {{DOMMatrix/e}} attribute must set the <a for=matrix>m41 element</a> to
1136+
the new value.
11531137

11541138
<p>The <dfn><code>m42</code></dfn> and <dfn><code>f</code></dfn> attributes, on getting, must
1155-
return the <a for=matrix>m42 element</a> value of the object it was invoked on. For the
1156-
{{DOMMatrix}} interface, setting the {{DOMMatrix/m42}} or the {{DOMMatrix/f}} attribute must set
1157-
the <a for=matrix>m42 element</a> value of the object it was invoked on to the new value.
1139+
return the <a for=matrix>m42 element</a> value. For the {{DOMMatrix}} interface, setting the
1140+
{{DOMMatrix/m42}} or the {{DOMMatrix/f}} attribute must set the <a for=matrix>m42 element</a> to
1141+
the new value.
11581142

11591143
<p>The <dfn><code>m43</code></dfn> attribute, on getting, must return the <a for=matrix>m43
1160-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1161-
{{DOMMatrix/m43}} attribute must set the <a for=matrix>m43 element</a> value of the object it was
1162-
invoked on to the new value.
1144+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m43}} attribute must
1145+
set the <a for=matrix>m43 element</a> to the new value and, if the new value is not ''0'', set <a
1146+
for=matrix>is 2D</a> to <code>false</code>.
11631147

11641148
<p>The <dfn><code>m44</code></dfn> attribute, on getting, must return the <a for=matrix>m44
1165-
element</a> value of the object it was invoked on. For the {{DOMMatrix}} interface, setting the
1166-
{{DOMMatrix/m44}} attribute must set the <a for=matrix>m44 element</a> value of the object it was
1167-
invoked on to the new value.
1149+
element</a> value. For the {{DOMMatrix}} interface, setting the {{DOMMatrix/m44}} attribute must
1150+
set the <a for=matrix>m44 element</a> to the new value and, if the new value is not ''1'', set <a
1151+
for=matrix>is 2D</a> to <code>false</code>.
11681152
</div>
11691153

11701154
<div class=note>

0 commit comments

Comments
 (0)