Skip to content

Commit fe5ec59

Browse files
dirkschulzesvgeesus
authored andcommitted
Style updates to DOMMatrix
1 parent e57f5f9 commit fe5ec59

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

matrix/index.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
specStatus: "ED",
1010
shortName: "matrix",
1111
edDraftURI: "http://dev.w3.org/fxtf/matrix/",
12-
// extraCSS: [
13-
// "http://dev.w3.org/2009/dap/ReSpec.js/css/respec.css",
14-
// "https://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/default.css"
15-
// ],
1612
editors: [
1713
{ name: "Dirk Schulze", mailto: "dschulze@adobe.com",
1814
company: "Adobe Systems Inc.", companyURL: "http://adobe.com/" },
@@ -31,9 +27,16 @@
3127
// name (without the @w3c.org) of the public mailing to which comments are due
3228
wgPublicList: "public-fx",
3329
wgPatentURI: "",
30+
noIDLSorting: true,
3431
noIDLIn: true,
3532
};
3633
</script>
34+
<style type="text/css">
35+
body {
36+
max-width: 50em;
37+
margin: 0 auto !important;
38+
}
39+
</style>
3740
</head>
3841
<body>
3942
<section id='abstract'>
@@ -207,7 +210,7 @@ <h3>The constructors</h3>
207210
<dd>A DOMString of transformation functions with the syntax and specifies defined in CSS Transforms [[!CSS3-TRANSFORMS]]. One CSS pixel length maps to one unit less value in the matrix.</dd>
208211
</dl>
209212
The DOMString must consist of a transform function list as specified by CSS Transforms.
210-
<div class='example'>
213+
<pre class='example'>
211214
<p>In the following example a CSS Transform string is passed to the DOMMatrix constructor.</p>
212215
<pre><code>var matrix = new DOMMatrix("translate(20px,20px), scale(2,3), rotate(45deg)"</code></pre>
213216
<p>The resulting matrix is equal to the following sequence of method calls:</p>
@@ -217,7 +220,7 @@ <h3>The constructors</h3>
217220
matrix.scaleNonUniformBy(2,3);
218221
matrix.rotateBy(45);
219222
</code></pre>
220-
</div>
223+
</pre>
221224
<p class='issue'>Should unit-less values (like for SVG transform presentation attribute) be allowed too? <code>"translate(20,20)"</code></p>
222225
<p>Throws a <var>DOMException</var> with name <code>SyntaxError</code> if the <code>DOMString</code> parameter does not validate to a transform list [[!CSS3-TRANSFORMS]].
223226
</dd>
@@ -762,7 +765,7 @@ <h3>Helper methods</h3>
762765
<dt>DOMString stringifier ()</dt>
763766
<dd>
764767
Returns a string in the form of a CSS Transforms <code>matrix</code> function if the current matrix is a 2D transform or a CSS Transforms <code>matrix3d</code> else. The syntax is as specified in CSS Transforms [[!CSS3-TRANSFORMS]].
765-
<div class='example'>
768+
<pre class='example'>
766769
<p>In this example a matrix is created and several methods with 2D transformations are called.</p>
767770
<pre><code>var matrix = new DOMMatrix();
768771
matrix.scaleBy(2);
@@ -774,7 +777,7 @@ <h3>Helper methods</h3>
774777
matrix.scale3dBy(2);</code></pre>
775778
<p>Calling <code>matrix.toString()</code> after the snippet above returns the DOM string:</p>
776779
<pre><code>"matrix3d(2,0,0,0,0,2,0,0,0,0,2,0,0,0,0,1)"</code></pre>
777-
</div>
780+
</pre>
778781
</dd>
779782
</dl>
780783
</section>
@@ -811,9 +814,9 @@ <h3 id="conventions">
811814
or are set apart from the normative text with <code>class="example"</code>,
812815
like this:
813816

814-
<div class="example">
817+
<pre class="example">
815818
<p>This is an example of an informative example.</p>
816-
</div>
819+
</pre>
817820

818821
<p>Informative notes begin with the word “Note” and are set apart from the
819822
normative text with <code>class="note"</code>, like this:

0 commit comments

Comments
 (0)