Skip to content

Commit 7047b2e

Browse files
SebastianZsvgeesus
authored andcommitted
Added WPTs
1 parent bbb2e98 commit 7047b2e

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

geometry/Overview.bs

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Can I Use URL: https://drafts.fxtf.org/geometry/
2525
Can I Use URL: https://www.w3.org/TR/geometry-1/
2626
Ignore Can I Use URL Failure: https://drafts.fxtf.org/geometry/
2727
Ignore Can I Use URL Failure: https://www.w3.org/TR/geometry-1/
28+
WPT Path Prefix: css/geometry/
29+
WPT Display: open
2830
Complain About: accidental-2119 true
2931
</pre>
3032

@@ -63,6 +65,11 @@ The SVG interfaces {{SVGPoint}}, {{SVGRect}} and {{SVGMatrix}} are aliasing the
6365
interfaces in favor for common interfaces used by SVG, Canvas 2D Context and CSS
6466
Transforms. [[SVG11]] [[HTML]] [[CSS3-TRANSFORMS]]
6567

68+
<wpt>
69+
idlharness.any.js
70+
spec-examples.html
71+
</wpt>
72+
6673

6774
The DOMPoint interfaces {#DOMPoint}
6875
===================================
@@ -133,6 +140,10 @@ constructors, when invoked, must run the following steps:
133140
2. Set <var>point</var>'s variables <a for=point>x coordinate</a> to <var>x</var>, <a for=point>y coordinate</a> to <var>y</var>, <a for=point>z coordinate</a> to <var>z</var> and <a for=point>w perspective</a> to <var>w</var>.
134141
3. Return <var>point</var>.
135142

143+
<wpt>
144+
DOMPoint-001.html
145+
</wpt>
146+
136147
The <dfn method dfn-for=DOMPointReadOnly
137148
id=dom-dompointreadonly-frompoint><code>fromPoint(<var>other</var>)</code></dfn> static method on
138149
{{DOMPointReadOnly}} must <a>create a <code>DOMPointReadOnly</code> from the dictionary</a>
@@ -198,6 +209,9 @@ ignore>transformedPoint</var> has the <a for=point>x coordinate</a> 20 and <a fo
198209
coordinate</a> 18.
199210
</div>
200211

212+
<wpt>
213+
DOMPoint-002.html
214+
</wpt>
201215

202216
Transforming a point with a matrix {#transforming-a-point-with-a-matrix}
203217
------------------------------------------------------------------------
@@ -385,6 +399,12 @@ the <a for=rectangle>x coordinate</a> and the sum of the <a for=rectangle>x coor
385399
<a for=rectangle>width dimension</a>.
386400
</div>
387401

402+
<wpt>
403+
DOMRect-001.html
404+
DOMRect-002.html
405+
DOMRect-nan.html
406+
</wpt>
407+
388408

389409
The DOMRectList interface {#DOMRectList}
390410
========================================
@@ -408,6 +428,10 @@ returned. Indices are zero-based.
408428
ADVISEMENT: {{DOMRectList}} only exists for compatibility with legacy Web content. When specifying a
409429
new API, {{DOMRectList}} must not be used. Use <code>sequence&lt;DOMRect></code> instead. [[WEBIDL]]
410430

431+
<wpt>
432+
DOMRectList.html
433+
</wpt>
434+
411435

412436
The DOMQuad interface {#DOMQuad}
413437
================================
@@ -554,6 +578,12 @@ algorithm:
554578
for=rectangle>height dimension</a> of <var>bounds</var> to <var>bottom</var> - <var>top</var>.
555579
7. Return <var>bounds</var>.
556580

581+
<wpt>
582+
DOMQuad-001.html
583+
DOMQuad-002.html
584+
DOMQuad-nan.html
585+
</wpt>
586+
557587
<div class=example>
558588
In this example the {{DOMQuad}} constructor is called with arguments of type {{DOMPoint}} and
559589
{{DOMPointInit}}. Both arguments are accepted and can be used.
@@ -824,6 +854,10 @@ Internal member variables must not be exposed in any way.
824854
The {{DOMMatrix}} and {{DOMMatrixReadOnly}} interfaces replace the <code>SVGMatrix</code>
825855
interface from SVG. [[SVG11]]
826856

857+
<wpt>
858+
WebKitCSSMatrix.html
859+
WebKitCSSMatrix.worker.js
860+
</wpt>
827861

828862
DOMMatrix2DInit and DOMMatrixInit dictionaries {#dommatrixinit-dictionary}
829863
--------------------------------------------------------------------------
@@ -877,6 +911,11 @@ run the following steps:
877911
with a value other than ''1'', set {{DOMMatrixInit/is2D}} to <code>false</code>.
878912
4. If {{DOMMatrixInit/is2D}} is still not present, set it to <code>true</code>.
879913

914+
<wpt>
915+
DOMMatrix2DInit-validate-fixup.html
916+
DOMMatrixInit-validate-fixup.html
917+
</wpt>
918+
880919

881920
<h3 id=dommatrix-parse algorithm>Parsing a string into an abstract matrix</h3>
882921

@@ -982,6 +1021,10 @@ must follow these steps:
9821021
Throw a {{TypeError}} exception.
9831022
</dl>
9841023

1024+
<wpt>
1025+
DOMMatrix-001.html
1026+
</wpt>
1027+
9851028
The <dfn method lt=fromMatrix() dfn-for=DOMMatrixReadOnly
9861029
id=dom-dommatrixreadonly-frommatrix><code>fromMatrix(<var>other</var>)</code></dfn> static method on
9871030
{{DOMMatrixReadOnly}} must <a>create a <code>DOMMatrixReadOnly</code> from the dictionary</a>
@@ -1173,6 +1216,11 @@ The {{DOMMatrixReadOnly/e}} attribute is an alias to the {{DOMMatrixReadOnly/m41
11731216
The {{DOMMatrixReadOnly/f}} attribute is an alias to the {{DOMMatrixReadOnly/m42}} attribute.
11741217
</div>
11751218

1219+
<wpt>
1220+
DOMMatrix-a-f-alias.html
1221+
DOMMatrix-attributes.html
1222+
</wpt>
1223+
11761224
The following attributes provide status information about {{DOMMatrixReadOnly}}.
11771225

11781226
<div dfn-type=attribute dfn-for=DOMMatrixReadOnly>
@@ -1331,6 +1379,11 @@ The following methods do not modify the current matrix and return a new {{DOMMat
13311379
The current matrix is not modified.
13321380
</dl>
13331381

1382+
<wpt>
1383+
DOMMatrix-002.html
1384+
DOMMatrix-newobject.html
1385+
</wpt>
1386+
13341387
The following methods do not modify the current matrix.
13351388

13361389
<dl dfn-type=method dfn-for=DOMMatrixReadOnly>
@@ -1402,8 +1455,16 @@ The following methods do not modify the current matrix.
14021455
Note: The string will be in the form of a a CSS Transforms <<matrix3d()>> function.
14031456
[[CSS3-TRANSFORMS]]
14041457
5. Return <var>string</var>.
1458+
1459+
<wpt>
1460+
DOMMatrix-stringifier.html
1461+
</wpt>
14051462
</dl>
14061463

1464+
<wpt>
1465+
DOMMatrix-003.html
1466+
</wpt>
1467+
14071468
<div class=example>
14081469
In this example, a matrix is created and several 2D transformation methods are called:
14091470

@@ -1587,6 +1648,14 @@ user agents.
15871648
2. If the current matrix is not invertible set all attributes to ''NaN'' and set <a
15881649
for=matrix>is 2D</a> to <code>false</code>.
15891650
3. Return the current matrix.
1651+
1652+
<wpt>
1653+
DOMMatrix-invert-invertible.html
1654+
DOMMatrix-invert-non-invertible.html
1655+
DOMMatrix-invert-preserves-2d.html
1656+
DOMMatrix-invertSelf.html
1657+
</wpt>
1658+
15901659
: <dfn>setMatrixValue(<var>transformList</var>)</dfn>
15911660
::
15921661
1. <a lt="parse a string into an abstract matrix">Parse <var>transformList</var> into an
@@ -1596,6 +1665,10 @@ user agents.
15961665
3. Set <a for=matrix>m11 element</a> through <a for=matrix>m44 element</a> to the element
15971666
values of <var>matrix</var> in column-major order.
15981667
4. Return the current matrix.
1668+
1669+
<wpt>
1670+
DOMMatrix-css-string.worker.js
1671+
</wpt>
15991672
</dl>
16001673

16011674

@@ -1729,6 +1802,9 @@ The <a>serialization steps</a> for {{DOMMatrixReadOnly}} and {{DOMMatrix}}, give
17291802
16. Set |value|'s <a for=matrix>m44 element</a> to |serialized|.\[[M44]].
17301803
17. Set |value|'s <a for=matrix>is 2D</a> to <code>false</code>.
17311804

1805+
<wpt>
1806+
structured-serialization.html
1807+
</wpt>
17321808

17331809

17341810
Security Considerations {#security}
@@ -1795,6 +1871,10 @@ Web. It is defined in this specification as an alias to {{DOMMatrix}}.
17951871
Some user agents supported a <code>MSCSSMatrix</code> interface. Implementations conforming to
17961872
this specification will not support <code>MSCSSMatrix</code>.
17971873

1874+
<wpt>
1875+
historical.html
1876+
</wpt>
1877+
17981878
<h2 class="no-num" id="conventions">Document conventions</h2>
17991879

18001880
The <dfn>NaN-safe minimum</dfn> of a non-empty list of {{unrestricted double}} values is NaN if any
@@ -1818,6 +1898,7 @@ href="https://www.w3.org/TR/2018/CR-geometry-1-20181204/">4 December 2018 Candid
18181898
* Added [NewObject] to matrixTransform, to align with prose description
18191899
* Removed redundant originZ check <a href="https://github.com/w3c/fxtf-drafts/issues/350">#350</a>
18201900
* Added explicit [Exposed] to DOMRectList
1901+
* Added Web Platform Tests coverage
18211902

18221903
The following changes were made since the <a
18231904
href="https://www.w3.org/TR/2014/CR-geometry-1-20141125/">25 November 2014 Candidate Recommendation</a>.

0 commit comments

Comments
 (0)