Loading tutorials
@media looks like. The JavaScript examples need only basic syntax.7 min read@media. The previous chapters introduced progressive enhancement and the reason6 min read@media wraps a block of rules. The previous chapters covered progressive enhancement and cascade fallbacks. Here you write the @supports rule that lets you apply an enha6 min read@supports (property: value) rule and know how source order and the cascade resolve conflicts. You should also be comfortable with @media conditions. Here you will learn how to combine several feature tests into one condition and how to avoid the syntax 7 min read@supports (property: value) rule and that you understand how source order and the cascade resolve conflicts. You should also be comfortable with @media. The last section uses a few lines of JavaScript, so you need only basic JavaScript.8 min read@supports and its not, and and or operators work. Here you will apply them to three common patterns: a grid layout, a translucent blurred panel, and a :has() parent style. You will a8 min read@media queries and know how the cascade resolves conflicts by origin, specificity and source order. It also assumes you have written a basic @supports (property: value) rule. You don't need to have used @layer before. The chapter introduces what you need.7 min read@supports rule lets a stylesheet decide which rules to apply. Sometimes a script needs the same decision. It might add a class, load an optional module, or pick between two ways of measuring something. CSS.supports() is the JavaScript counterpart of @supports. It runs the same parser and t6 min read@supports rule, combine conditions with not, and and or, and use selector(). It also assumes you know that source order decides between declarations of equal specificity. The chapter lists the mistakes that cause most @supports bugs. It 6 min read@supports rules and baseline-first CSS, and that you know the cascade rules from earlier chapters. You also need basic JavaScript and a command line. The examples use Playwright, but the ideas carry over to any browser test tool.7 min read