CSS media queries can be nested (#tilPost)

I read a post on Bramus’ blog (which you should check out), and I learned that CSS media queries could be nested. 😲
The following is completely valid CSS:
@media not print {
@media (min-width: 0) {
p {
font-weight: bold;…

I read a post on Bramus' blog (which you should check out), and I learned that CSS media queries could be nested. 😲

The following is completely valid CSS:

@media not print {
  @media (min-width: 0) {
    p {
      font-weight: bold;
    }
    @media (max-width: 750px) {
      p {
        background: yellow;
      }
    }
  }
}

If you want to learn more about this functionality, read the article "Nested Media Queries" on bram.us.


Reply to Stefan
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: