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

Implement support for CSS variables #149

Open
rodarima opened this issue May 3, 2024 · 0 comments
Open

Implement support for CSS variables #149

rodarima opened this issue May 3, 2024 · 0 comments
Labels
CSS enhancement New feature or request

Comments

@rodarima
Copy link
Member

rodarima commented May 3, 2024

Websites often use variables to store CSS values that have a large impact in how the page is rendered. As we simply ignore all variables, pages don't layout properly even if we support most of the underlying CSS properties.

Example for https://gwern.net/search where most CSS rules use variables:

...
body {
    max-width: var(--GW-body-max-width);
    padding: 0 var(--GW-body-side-padding);
    margin: 0 auto;
}
...

This is how is rendered in Firefox without JS enabled:

image

But it looks like this in Dillo:

d

@rodarima rodarima added enhancement New feature or request CSS labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant