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

Hide canvas in shadow tree #167

Open
ksons opened this issue Jan 7, 2016 · 0 comments
Open

Hide canvas in shadow tree #167

ksons opened this issue Jan 7, 2016 · 0 comments

Comments

@ksons
Copy link

ksons commented Jan 7, 2016

Currently we create a <canvas> element and place it at the <xml3d> element's DOM position. This implicit mutation of the DOM is not very elegant and might confuse an application.

With Shadow DOM functionality we can hide the canvas inside the <xml3d> element's shadow tree. Hence we would not have to modify the (exposed) DOM.

Unfortinately, only a small subset of browsers support Shadow DOM. One could use the Shadow DOM where available and, at the same time, provide a unified access to the <canvas> element (e.g. as a property of the <xml3d> element).

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

1 participant