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

Issue with getComputedStyle / breaking tests #107

Open
karimbeyrouti opened this issue Oct 18, 2021 · 1 comment
Open

Issue with getComputedStyle / breaking tests #107

karimbeyrouti opened this issue Oct 18, 2021 · 1 comment

Comments

@karimbeyrouti
Copy link

Using getComputedStyle with browser service breaks tests, this is cause by the browser service proxying values, since getComputedStyle expects a HTMLElement and not a proxy it thows the following error:

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

with the following code

let cssVar = getComputedStyle(this.window.document.documentElement).getPropertyValue( '--css-var', );

@NullVoxPopuli
Copy link
Contributor

I don't think this is something you'd want to not use the real implementation for.
Can you describe more what you're trying to do?

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

2 participants