W
W
weranda2021-02-08 12:20:43
Google Chrome
weranda, 2021-02-08 12:20:43

Why doesn't Chrome in DevTools show media query points for a site?

Greetings.

Opened the developer toolbar in Google Chrome.
I clicked on the button on the toolbar, which allows you to view the site in different resolutions: Panels
6020ffeb0ce57358678030.png
appeared in the upper part that show the media queries existing in the site styles, but for some reason this panel does not show those points that set the maximum width.

To make it clear, let me give you an example:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    @media (max-width: 1100px) {
        h1{font-size: 40px}
    }
    @media (max-width: 900px) {
        h1{font-size: 30px}
    }
    @media (max-width: 700px) {
        h1{font-size: 20px}
    }
    @media (max-width: 600px) {
        h1{font-size: 15px}
    }
    @media (max-width: 400px) {
        h1{font-size: 12px}
    }

    @media (min-width: 1100px) {
        h1{color: red;}
    }
    @media (min-width: 900px) {
        h1{color: blue;}
    }
    @media (min-width: 700px) {
        h1{color: green;}
    }
    @media (min-width: 600px) {
        h1{color: gray;}
    }
    @media (maminx-width: 400px) {
        h1{color: silver;}
    }
    </style>
</head>

<body>
</body>

  <h1>Page Title</h1>

</html>


max-widthIf you save this code and open this panel in the browser, then only one range from the maximum will be shown in the upper panel . The rest of this series will not be shown. 602102575f3ee453168231.png
It used to show everything, I remember exactly what it was. There must have been a change somewhere in the settings, but I can't figure out where. If you know how to fix this so that it shows all the "transition points", I will be grateful for your help. If you know for sure that this was cut out from Chrome, then tell me if this is so so that I don’t waste time looking for these settings.

PS
And to make it generally clear, I found a browser here that has not been updated for some time and, voila, it has this thing. True, this is not chrome, but Vivaldi, but in fact it is one and the same.
60210370a6b6d534985928.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hora_developer, 2021-02-20
@hora_developer

In dev version of google chrome all media queries are shown
6030f864e5285298481593.png
6030f885652fb591094885.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question