Skip to content

Commit b074557

Browse files
committed
Fix bugs 15471, 15535, 15598.
1 parent 8619971 commit b074557

1 file changed

Lines changed: 27 additions & 17 deletions

File tree

css3-transforms/Transforms.src.html

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,16 @@ <h2 id="transform-property">
327327
<em>Computed value:</em>
328328
</td>
329329
<td>
330-
Same as specified value.
330+
See below.
331331
</td>
332332
</tr>
333333
</tbody>
334-
</table><!-- ======================================================================================================= -->
334+
</table>
335+
336+
<div class="issue issue-marker"><p class="desc">We need to resolve whether the computed value is the same as the specified value, or matrix().</p></div>
337+
<p>The computed value of the transform property is a matrix() or matrix3d() value that describes the matrix that results from concatenating the individual transform functions. If the resulting matrix can be represented as a two-dimensional matrix with no loss of information, then a matrix() value is returned, otherwise a matrix3d() value. For elements with no transform applied, the computed value is 'none'.</p>
338+
<!-- ======================================================================================================= -->
339+
335340

336341
<h3 id="svg-transform">The SVG transform attribute</h3>
337342

@@ -431,7 +436,7 @@ <h2 id="transform-origin-property">
431436
<em>Initial:</em>
432437
</td>
433438
<td>
434-
50% 50%
439+
0 0 for SVG elements, 50% 50% for all other elements
435440
</td>
436441
</tr>
437442
<tr>
@@ -479,6 +484,9 @@ <h2 id="transform-origin-property">
479484

480485
<h3 id="svg-transform-origin">The 'transform-origin' property for SVG elements</h3>
481486

487+
<div class="issue issue-marker">
488+
<p class="desc">Should we use 'auto', or explicitly say that transform-origin is 0 0 for SVG elements, 50% 50% for all other elements (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15504">bug 15504</a>)?</p>
489+
</div>
482490
<p>To keep the 'transform' property compatible with existing SVG content that assumed a top/left
483491
coordinate system origin, the user agent stylesheet must contain the following:</p>
484492

@@ -501,6 +509,8 @@ <h2 id="transform-functions">
501509
type &lt;translation-value&gt; is defined as a &lt;length&gt; or
502510
&lt;percentage&gt; value, and the &lt;angle&gt; type is defined by <a
503511
href="http://www.w3.org/TR/css3-values/">CSS Values and Units.</a>
512+
Wherever &lt;angle&gt; is used in this specification, a &lt;number&gt; that is equal to
513+
zero is also allowed, which is treated the same as an angle of zero degrees.
504514
</p>
505515
<dl>
506516
<dt>
@@ -827,17 +837,18 @@ <h3 id="cssmatrix-interface">
827837
CSSMatrix
828838
</h3>
829839

830-
831840
<div class="issue issue-marker">
832-
<p class="desc">We actually describe a 3x2 matrix here, similar to <a href="http://www.w3.org/TR/SVG/coords.html#InterfaceSVGMatrix">SVGMatrix</a>.
833-
</p></div>
841+
<p class="desc">We actually describe a 3x2 matrix here, similar to <a href="http://www.w3.org/TR/SVG/coords.html#InterfaceSVGMatrix">SVGMatrix</a>.</p>
842+
</div>
843+
<div class="issue issue-marker">
844+
<p class="desc">We need to resolve how SVGMatrix and CSSMatrix work together (<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15498">bug 15498</a>).</p>
845+
</div>
834846

835847
<dl>
836848
<dt>
837849
<b>Interface <i><a id="DOM-CSSMatrix" name='DOM-CSSMatrix'>CSSMatrix</a></i></b>
838850
</dt>
839851
<dd>
840-
841852
<p>
842853
The <code>CSSMatrix</code> interface represents a 3x2 homogeneous matrix.
843854
</p>
@@ -1226,18 +1237,17 @@ <h3 id="cssmatrix-interface">
12261237
</dd> <!-- Interface CSSMatrix -->
12271238
</dl>
12281239

1229-
<div class="issue issue-marker"><p class="desc">We need to resolve how SVGMatrix and CSSMatrix work together.</p></div>
1230-
<p>
1231-
In addition to the interface listed above, the <code>getComputedStyle</code> method of the <code>Window</code>
1232-
object has been updated. The <code>transform</code> property of the style object returned by
1233-
<code>getComputedStyle</code> contains a DOMString of the form "matrix(a, b, c, d, e, f)"
1234-
representing the 3x2 matrix that is the result of applying the individual functions listed in the
1235-
<code>transform</code> property.
1236-
</p>
1237-
1238-
12391240
<h2 id="changes">Changes</h2>
12401241

1242+
<h3 id="changes_on_January_25_2012">
1243+
Changes by Simon Fraser on January 25 2012
1244+
</h3>
1245+
<ul>
1246+
<li>Potentially resolved <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15471">bug 15471</a> and
1247+
<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15535">bug 15535</a> by removing the text about getComputedStyle after CSS matrix, and adding a paragraph about the computed value of the 'transform' property.</li>
1248+
<li>Fixed <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15598">bug 15598</a>, adding a note about unitless 0 in angles.</li>
1249+
</ul>
1250+
12411251
<h3 id="changes_from_January_24_2012">
12421252
Changes from <a href="http://www.w3.org/TR/2012/ED-css3-2d-transforms-20110124/">January 24<sup>th</sup> 2012</a> version
12431253
</h3>

0 commit comments

Comments
 (0)