Skip to content

Commit 3db8987

Browse files
zcorpansvgeesus
authored andcommitted
Fix setMatrixValue("none")
Part of #55.
1 parent d312dfa commit 3db8987

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

geometry/Overview.bs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,15 +1185,17 @@ Note: Authors who use chained method calls are recommended to use mutable transf
11851185
<dt><dfn>setMatrixValue(<var>transformList</var>)</dfn></dt>
11861186
<dd>
11871187
<ol>
1188-
<li>If <var>transformList</var> is the empty string, set it to the string "<code lt>matrix(1,
1189-
0, 0, 1, 0, 0)</code>".</li>
1190-
<li>Parse <var>transformList</var> by following the syntax description in “<a
1191-
href=https://drafts.csswg.org/css-transforms-1/#svg-syntax>Syntax of the SVG ‘transform’
1192-
attribute</a>[[!CSS3-TRANSFORMS]] to a <<transform-list>>. If parsing is not successful, or
1193-
any <<transform-function>> has <<length>> values without <a spec='css-values'>absolute
1194-
length</a> units<!--For WD: <a spec='css-values-3'>absolute length units</a>-->, or any
1195-
keyword other than ''transform/none'' is used, throw a {{SyntaxError}}
1196-
exception.</li>
1188+
<li>If <var>transformList</var> is the empty string, set it to the string "<code>matrix(1, 0,
1189+
0, 1, 0, 0)</code>".</li>
1190+
<li>Parse <var>transformList</var> into <var>parsedValue</var> by following the syntax
1191+
description in “<a href=https://drafts.csswg.org/css-transforms-1/#svg-syntax>Syntax of the
1192+
SVG ‘transform’ attribute</a>[[!CSS3-TRANSFORMS]] to a <<transform-list>> or the keyword
1193+
''transform/none''. If parsing is not successful, or any <<transform-function>> has <<length>>
1194+
values without <a spec='css-values'>absolute length</a> units<!--For WD: <a
1195+
spec='css-values-3'>absolute length units</a>-->, or any keyword other than ''transform/none''
1196+
is used, throw a {{SyntaxError}} exception.</li>
1197+
<li>If <var>parsedValue</var> is ''transform/none'', set <var>parsedValue</var> to a
1198+
<<transform-list>> containing a single identity matrix</li>
11971199
<li>Set <a>is2D</a> to <code>false</code> if the <<transform-list>> consists of any <a href='https://drafts.csswg.org/css-transforms-1/#three-d-transform-functions'>3D Transform functions</a>. Otherwise set <a>is2D</a> to <code>true</code>.</li>
11981200
<li>Transform all <<transform-function>>s to 4x4 matrices by following the “<a href=https://drafts.csswg.org/css-transforms-1/#mathematical-description>Mathematical Description of Transform Functions</a>[[!CSS3-TRANSFORMS]].</li>
11991201
<li>Post-multiply all matrices from left to right to a combined 4x4 matrix.</li>

0 commit comments

Comments
 (0)