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] new DOMMatrix().toString() works differently when executed in a web worker #558

Open
SimonSiefke opened this issue Mar 26, 2024 · 0 comments

Comments

@SimonSiefke
Copy link

Spec Link

https://drafts.fxtf.org/geometry/#dommatrixreadonly

interface DOMMatrixReadOnly {
    [Exposed=Window] stringifier;
}

What steps will reproduce the problem?

  1. In a devtools console, evaluate console.log(new DOMMatrix().toString())
  2. In a devtools web worker console, evaluate console.log(new DOMMatrix().toString())

What is the expected result?

new DOMMatrix().toString() behaves the same in the main thread as in a web worker, new DOMMatrix().toString() should be matrix(1, 0, 0, 1, 0, 0).

What happens instead?

Inside the main thread: new DOMMatrix().toString() === matrix(1, 0, 0, 1, 0, 0)
Inside a web worker : new DOMMatrix().toString() === [object DOMMatrix]

Additional Information

The same issue occurs for DOMMatrixReadOnly.

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

No branches or pull requests

1 participant