-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Add CSS @custom-media at-rule
#42075
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
Conversation
Preview URLs (9 pages)
Flaws (9)Note! 7 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
External URLs (2)URL:
URL:
(comment last updated: 2025-12-02 16:35:43) |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there @ramiy! Some really nice work here, thank you! I've got a bunch of comments, but nothing too serious — this is definitely going in the right direction.
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
|
@chrisdavidmills I have a question about the following flaws:
They are not part of my content. They are caused by: ## Formal syntax
{{csssyntax}}which generates:
Nevertheless, I create an article for It links to:
Instead of:
I tried to look for a way to redirect to the links, but I found only the docs explaining how to move pages, which didn't work. |
@ramiy I wouldn't worry about this. This is something we really need to fix/improve in the platform. |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ramiy much better, and so very nearly there. Just a handful of minor comments on the new additions.
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
|
Thank you @ramiy for taking on this work! 🏆 |
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
chrisdavidmills
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, @ramiy! I think this is ready to merge now.
|
This requires adding a live demo to the documentation. |


Description
Firefox 146 added support for
@custom-mediaat-rule, enabling developers to use custom media variables inside@mediaat-rules.I already updated BCD, and created a web feature on web platform. This PR adds an article to MDN explaining how and when to use Custom Media Queries.
Additional details
Over a year ago I tried to add this article but it was denied as no browser implemented this feature.
Now, with Firefox implementing it, we can add an article, explaining how to use this feature.