HTML & CSS · Middle · Question 58 of 75

What is @supports for?

@supports (display: grid) {
  .layout { display: grid; }
}

Explanation

It checks feature support, not browsers. @supports selector(:has(a)) tests selectors too. Write a working fallback outside the block.

Further reading

Problem with a question

HTML & CSS · Middle · question 58

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz