Style queries are better than I thought they would be

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI7 min

About this video

Kevin Powell walks through using CSS style queries to change styling based on another style value, including a locally scoped custom property fix and the current limitations of style queries. It is aimed at front-end developers who already know CSS.

What you’ll learn

  • Apply a locally scoped custom property to fix a styling problem
  • Use style queries to adapt CSS based on other style values
  • Identify the current limitations of style queries in browsers