w3c / w3c/csswg-drafts

[mediaqueries-5] Syntax for `<media-query>` doesn't include `<extension-name>` for custom media queries

Open
#7,724 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mediaqueries-5
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

@custom-media = @custom-media <extension-name> [ <media-query-list> | true | false ] ;

Custom media queries defined with @custom-media do not seem to have a provision in the syntax section.

I would expect to find <extension-name> in the syntax to indicate where it is allowed to use these.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Media Queries Level 5 syntax section linked in the issue, then compare it with the shown @custom-media definition and the referenced type. Update the syntax description if the comparison confirms the omission, and verify that custom media query usage is represented consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.