-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Firefox 146 adds CSS @custom-media at-rule behind flag
#28438
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
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
caugner
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.
LGTM, just two nits.
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@custom-media at-rule@custom-media at-rule behind flag
Relates to mdn#28438 This PR adds `CSSCustomMediaRule` API. Ref: * mozilla-firefox/firefox@f289eebba919#diff-5344d883f252f0d0fcde1443e722366428c6dec715f2dfa5a910d6d4fd088ce2 * https://bugzilla.mozilla.org/show_bug.cgi?id=1744292
* Firefox 146 adds `CSSCustomMediaRule` API behind flag Relates to #28438 This PR adds `CSSCustomMediaRule` API. Ref: * mozilla-firefox/firefox@f289eebba919#diff-5344d883f252f0d0fcde1443e722366428c6dec715f2dfa5a910d6d4fd088ce2 * https://bugzilla.mozilla.org/show_bug.cgi?id=1744292 --------- Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
| "chrome_android": "mirror", | ||
| "edge": "mirror", | ||
| "firefox": { | ||
| "version_added": "146", |
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.
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.
@emilio Given bug 2004653 (landed in Firefox 148), this feature actually doesn't work in Firefox 146. Will you backport it to Firefox 146?
Otherwise, all relevant MDN docs must be modified.
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.
@yisibl Since the feature is behind a flag, the fix probably won't be backported. If you like, you can open a PR correcting the version number, but once the feature ships in Firefox Stable, the flag entry will be removed anyhow.
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.
@caugner Okay, I recommend that for new features going forward, a demo must be provided for verification before merging pull requests.
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.
A demo doesn't prove the absence of major bugs. In general, when features are behind a flag, they are not stable, so bugs are expected.
Note that the majority of BCD features is covered by the MDN BCD Collector, which supports custom tests for cases like this, where a test case cannot be derived from the spec. However, we only run the MDN BCD Collector on Beta releases without any flags enabled.

Summary
Firefox 146 added supports for
@custom-mediaat-rule.Feature information
Browsers support
Related issues
Last year I added this feature to BCD - #24338
But because no browsers implemented it yet, the feature was deleted - #25125
Now that Firefox implemented this, we can add it back to BCD.