Open Bug 1062625 Opened 12 years ago Updated 4 years ago

No indication of stylesheets hidden by media queries

Categories

(DevTools :: Style Editor, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: darktrojan, Unassigned)

Details

The style editor shows all stylesheets, even if they are not applied due to media queries. Example: > <link rel="stylesheet" media="screen and max-width(360px)" ... /> This is confusing if you forget a stylesheet is not applied and try to edit it. It would be nice to have some sort of indication.
Sounds like a good idea indeed. In fact, we do have a mediaquery sidebar in the style-editor, but it only lists queries found inside the stylesheet, not queries used to determine if a stylesheets applies or not. STR: - create an HTML page with: <!DOCTYPE html> <link rel="stylesheet" media="(max-width: 600px)" href="test.css" /> - and a test.css file next to it with: body {background:red} - open the HTML page in Firefox - open the style editor (shift-F7) - notice that whether the Firefox window is less or more than 600px, the stylesheet is visible in the list. The fact that it's visible makes sense because we show everything that was loaded, but as Geoff said, an indication would be nice. Either below the file name somewhere in the left sidebar, or in the mediaquery sidebar to the right.
Severity: normal → enhancement
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.