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

Default style of canvas element #213

Open
skybber opened this issue Dec 21, 2024 · 0 comments
Open

Default style of canvas element #213

skybber opened this issue Dec 21, 2024 · 0 comments

Comments

@skybber
Copy link

skybber commented Dec 21, 2024

Aladin modifies default style of all canvases on the page:

canvas {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

It would be better to have a selector for the Aladin canvas otherwise it worsens the rendering quality (at least in FF/windows11) in non Aladin canvases.

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