Skip to content

Commit 8b7c8bb

Browse files
committed
[css-transforms-1] Clarify use matrix entry index order in pseudo-code #924
1 parent b357bf8 commit 8b7c8bb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

css-transforms-1/Overview.bs

+7-4
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ Issue(w3c/csswg-drafts#892): Clarify what the reference box of paint servers, <a
376376

377377
A reference box adds an additional offset to the origin specified by the 'transform-origin' property.
378378

379-
For SVG elements without an associated CSS layout box, the [=used value=] for <a value for=transform-box>border-box</a> is <a value for=transform-box>view-box</a>.
379+
For SVG elements without an associated CSS layout box, the [=used value=] for ''transform-box/border-box'' is ''transform-box/view-box''.
380380

381-
For elements with an associated CSS layout box, the [=used value=] for <a value for=transform-box>fill-box</a> and <a value for=transform-box>view-box</a> is <a value for=transform-box>border-box</a>.
381+
For elements with an associated CSS layout box, the [=used value=] for ''transform-box/fill-box'' and ''transform-box/view-box'' is ''transform-box/border-box''.
382382

383383

384384
The SVG <a element-attr for>transform</a> Attribute {#svg-transform}
@@ -1158,7 +1158,7 @@ Decomposition also makes use of the following function:
11581158

11591159
The pseudo code below is based upon the "unmatrix" method in "Graphics Gems II, edited by Jim Arvo".
11601160

1161-
Issue(w3c/csswg-drafts#924): Clarify column/row order for matrix in pseudo code.
1161+
Matrices in the pseudo code use the column-major order. The first index on a matrix entry represents the column and the second index represents the row.
11621162

11631163
Issue(w3c/csswg-drafts#483): Incorrect indices for matrix?
11641164

@@ -1278,7 +1278,9 @@ Afterwards, each component of the decomposed values translation, scale, angle, m
12781278

12791279
<h4 id="recomposing-to-a-2d-matrix">Recomposing to a 2D matrix</h4>
12801280

1281-
After interpolation, the resulting values are used to transform the elements user space. One way to use these values is to recompose them into a 4x4 matrix. This can be done following the pseudo code below:
1281+
After interpolation, the resulting values are used to transform the elements user space. One way to use these values is to recompose them into a 4x4 matrix. This can be done following the pseudo code below.
1282+
1283+
Matrices in the pseudo code use the column-major order. The first index on a matrix entry represents the column and the second index represents the row.
12821284

12831285
<pre>
12841286
Input: translation ; a 2 component vector
@@ -1391,6 +1393,7 @@ The following changes were made since the <a href="https://www.w3.org/TR/2017/WD
13911393
* Added <a href="#priv-sec">privacy and security</a> section.
13921394
* Use [[SVG2]] definitions for <a>transformable elements</a>.
13931395
* Added special syntax for <a element-attr for>transform</a>, <{linearGradient/gradientTransform}> and <{pattern/patternTransform}> attributes.
1396+
* Clarify index order of matrix entries in pseudo-code.
13941397

13951398
ISSUE: Add all changes.
13961399

0 commit comments

Comments
 (0)