In a fictional stylesheet with several media query sections only the rules within the relevant media query will be processed by the browser, for example
@media screen and (max-width: 400px) {
.container {
width: 95%;
}
}
@media screen and (max-width: 800px) {
.container {
width: 80%;
}
}
.container
will be 95% wide on a screen with a maximum width of 400px.
My question is this: Even though the media query for max 400px is the only one that is relevant (in this fictional example), will the media query for max 800px be cached by the browser, even though it is irrelevant, or not?