Skip to content

[mediaqueries] Status of Script-based Custom Media Queries #5085

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

Open
Devcon4 opened this issue May 19, 2020 · 1 comment
Open

[mediaqueries] Status of Script-based Custom Media Queries #5085

Devcon4 opened this issue May 19, 2020 · 1 comment

Comments

@Devcon4
Copy link

Devcon4 commented May 19, 2020

Section 4.1 of the media queries spec mentions adding the ability to set custom media queries from Javascript but is lacking in detail. It only contains Issue 6.

What is the status of 4.1 is it still being considered? I think this adds a lot more flexibility to media queries. The use case I am interested in is to override prefers-color-scheme with a toggle or allow selecting from several color themes. There are workaround for my use case but I feel this would be a more elegant way of dealing with that problem.

Thanks!

@frivoal
Copy link
Collaborator

frivoal commented Jul 24, 2020

I'd love to push further on this, but that depends on interest from implementors. @tabatkins Do you know if Chrome could be interested in pushing this?

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

2 participants