[fxtf-drafts] [geometry] Structured serialization should branch on is 2D

zcorpan has just created a new issue for https://github.com/w3c/fxtf-drafts:

== [geometry] Structured serialization should branch on is 2D ==
See https://codereview.chromium.org/2874203003/#msg8

Consider this test:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5171
```
<!DOCTYPE html>
<script>
onmessage = (e) => w(1 / e.data.m13);
var m = new DOMMatrix();
m.m13 = -0;
w(m.is2D);
postMessage(m, '*');
</script>
```
Per current spec this should log
```
log: true
log: -Infinity
```
But the Chromium CL it would say Infinity, I believe, since it only copies `a`-`f` for a 2d matrix. I think that is very reasonable, so suggest we change the spec.

cc @domenic @fserb

Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/161 using your GitHub account

Received on Monday, 15 May 2017 13:44:44 UTC