Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[geometry] Structured serialization should branch on is 2D #161

Closed
zcorpan opened this issue May 15, 2017 · 1 comment
Closed

[geometry] Structured serialization should branch on is 2D #161

zcorpan opened this issue May 15, 2017 · 1 comment
Assignees

Comments

@zcorpan
Copy link
Member

zcorpan commented May 15, 2017

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

@zcorpan
Copy link
Member Author

zcorpan commented May 16, 2017

Spec PR: #162
WPT PR: web-platform-tests/wpt#5937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants