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

Canvas doesn't render in Safari on iOS #178

Open
eliknebel opened this issue Feb 10, 2021 · 1 comment
Open

Canvas doesn't render in Safari on iOS #178

eliknebel opened this issue Feb 10, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@eliknebel
Copy link

I know its not the typical use case, but using code-server (vscode on a remote server) with browser preview (in iOS) would be a great for web development on iPad, but it appears to render a checkered grid instead of the page.

Looking at the css, there is a css class being applied to the rendered page: .img-hidden{ display: none }. My guess is that this class is supposed to be removed somehow when rendering is finished?

How the page is shown initially:
Screen Shot 2021-02-10 at 10 59 05 AM

Turning off the display: none css attribute:
Screen Shot 2021-02-10 at 10 58 50 AM

@auchenberg
Copy link
Owner

This extension has never been tested outside of Electron, so that's a new use-case. The rendering pipeline is using the hidden image to convert the base64 PNG to an image, which is then rendered to the

So something must go wrong in the process of decoding the base64 to img.

@auchenberg auchenberg changed the title Browser preview doesn't work in Safari Canvas doesn't render in Safari on iOS Feb 20, 2021
@auchenberg auchenberg added the bug Something isn't working label Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants