Open Bug 2005195 Opened 10 months ago Updated 9 months ago

Display @custom-media rules in rules view

Categories

(DevTools :: Inspector: Rules, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 2 open bugs)

Details

In a similar fashion to what we do with @property / @keyframes, @position-try, … we could display @custom-media rules in the Rules view, in their own section.
It would be nice to have the name and condition editable as well

Depends on: 2005197
Blocks: 2005198
Blocks: 2005199

Note: @custom-media rules can be overridden (see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@custom-media#overriding_existing_custom-media_rules)
Depending on what we have access to, we could:

  • only show the rules that are not overridden
  • show the overridden rules with a specific style that makes it clear that the rule is overridden
Severity: -- → S3
Priority: -- → P3
No longer blocks: 2005198
You need to log in before you can comment on or make changes to this bug.