Я не нашел никаких официальных ресурсов (вот спецификация Модуль Условных Правил CSS Уровень 3 ).Я попробовал это.В Chrome мы можем вложить как минимум 40 уровней.Этого должно быть достаточно по любым практическим причинам.
@media screen and (max-width: 2001px) {
body {
background-color: gold;
}
@media screen and (max-width: 2002px) {
body {
background-color: silver;
}
@media screen and (max-width: 2003px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2004px) {
body {
background-color: gold;
}
@media screen and (max-width: 2005px) {
body {
background-color: silver;
}
@media screen and (max-width: 2006px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2007px) {
body {
background-color: gold;
}
@media screen and (max-width: 2008px) {
body {
background-color: silver;
}
@media screen and (max-width: 2009px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2010px) {
body {
background-color: green;
}
@media screen and (max-width: 2011px) {
body {
background-color: gold;
}
@media screen and (max-width: 2012px) {
body {
background-color: silver;
}
@media screen and (max-width: 2013px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2014px) {
body {
background-color: gold;
}
@media screen and (max-width: 2015px) {
body {
background-color: silver;
}
@media screen and (max-width: 2016px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2017px) {
body {
background-color: gold;
}
@media screen and (max-width: 2018px) {
body {
background-color: silver;
}
@media screen and (max-width: 2019px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2020px) {
body {
background-color: red;
}
@media screen and (max-width: 2021px) {
body {
background-color: gold;
}
@media screen and (max-width: 2022px) {
body {
background-color: silver;
}
@media screen and (max-width: 2023px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2024px) {
body {
background-color: gold;
}
@media screen and (max-width: 2025px) {
body {
background-color: silver;
}
@media screen and (max-width: 2026px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2027px) {
body {
background-color: gold;
}
@media screen and (max-width: 2028px) {
body {
background-color: silver;
}
@media screen and (max-width: 2029px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2030px) {
body {
background-color: blue;
}
@media screen and (max-width: 2020px) {
body {
background-color: red;
}
@media screen and (max-width: 2031px) {
body {
background-color: gold;
}
@media screen and (max-width: 2032px) {
body {
background-color: silver;
}
@media screen and (max-width: 2033px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2034px) {
body {
background-color: gold;
}
@media screen and (max-width: 2035px) {
body {
background-color: silver;
}
@media screen and (max-width: 2036px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2037px) {
body {
background-color: gold;
}
@media screen and (max-width: 2038px) {
body {
background-color: silver;
}
@media screen and (max-width: 2039px) {
body {
background-color: goldenrod;
}
@media screen and (max-width: 2040px) {
body {
background-color: yellow;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
If we can nest media queries 40 Levels deeps the background should be yellow
<br><br>
Chrome 72 can<br>
Firefox 65 can<br>
Edge 17 can<br>