You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Visualization of media query breakpoints
Display spanning areas between breakpoints
Highlight currently matching media queries
Provide hints for displayed media queries
Allow resizing to media query breakpoints
Allow resizing to edge cases (i.e. media query breakpoint +/- 1px)
Link breakpoints to media queries in Style Editor
Synchronize this feature with the media query sidebar within the Style Editor
hi, let me know if this is the wrong place for documenting the current discussions and initial implementation plan for this feature. just wanted to put it in one place and make the conversation going. as suggested by @nchevobbe i will try checking the points under Implementation Plan and see how to work through it. thanks! -@maurusrv
Goal
Add a media query visualizer on firefox dev tools
summary from the discourse link
Bug / Request Documentation
Discourse
Show media queries in Responsive Design View
BugZilla
Media Query Visualizer in Responsive Design Mode
Visualize the vertical lines of media queries in the viewport when on the inspector
Implementation Plan from @nchevobbe
Add a new component (e.g. MediaQueryVisualizer) rendered below the Toolbar componentcheck how the style editor retrieves the list of media query (and react to any changes in media queries)https://searchfox.org/mozilla-central/rev/cc4a17cea338fe236626d838ca96e9bf6a775675/devtools/client/styleeditor/StyleEditorUI.jsm#1244-1248the function is called when media queries changed (and I think we also get an initial call with the existing media queries)this function is called because we do this: https://searchfox.org/mozilla-central/rev/cc4a17cea338fe236626d838ca96e9bf6a775675/devtools/client/styleeditor/StyleEditorUI.jsm#152-158so we would have to do something similar inhttps://searchfox.org/mozilla-central/rev/cc4a17cea338fe236626d838ca96e9bf6a775675/devtools/client/responsive/ui.js#406-409one thing we might do early is add a preference that would be set to false so we can start adding work without making it visible until we have something we're happy with (i.e. something likehttps://searchfox.org/mozilla-central/rev/368607c4cd5be547021945e4ae60e8eb4365b3c4/browser/app/profile/firefox.js#2461)we'd need to create a decicated bug for that, that would blockhttps://bugzilla.mozilla.org/show_bug.cgi?id=1031585References
we're using React to build the RDM UI, and things are defined herehttps://searchfox.org/mozilla-central/rev/cc4a17cea338fe236626d838ca96e9bf6a775675/devtools/client/responsive/components/App.js#398-435Note
hi, let me know if this is the wrong place for documenting the current discussions and initial implementation plan for this feature. just wanted to put it in one place and make the conversation going. as suggested by @nchevobbe i will try checking the points under Implementation Plan and see how to work through it. thanks! -@maurusrv