tubeshowcase●1,669,063 videosβ™‘ My collection 0
← Learn to Code

Learn to Code42:55

These CSS features give us more control on the cascade and specificity

Kevin Powell β†—

From the creator

Looking to step up your CSS? I have free and premium courses πŸ‘‰ https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=moderncascade A very big thank you to Geoff Graham for his help in making this video possible! https://geoffgraham.me/ πŸ”— Links βœ… More on svh/dvh/lvh: https://youtu.be/ru3U8MHbFFI βœ… More on specificity: https://youtu.be/c0kfcP_nD9E βœ… More on :is() :where() and :has(): https://youtu.be/3ncFpP8GP4g βœ… More on layers: https://youtu.be/NDNRGW-_1EE βœ… More on feature queries @support: https://youtu.be/wPI8CEoheSk βœ… Browser support for :has(): https://caniuse.com/css-has βœ… Browser support for layers: https://caniuse.com/mdn-css_at-rules_layer βœ… Browser support for @scope: https://caniuse.com/css-cascade-scope ⌚ Timestamps 00:00 - Introduction 01:40 - Order basics 03:10 - Debugging order 04:18 - Order linting 05:55 - Invalid declarations & debugging them 07:40 - Using order and invalid declarations on purpose 10:26 - Feature queries @supports 12:45 - Specificity intro 13:45 - Specificity basics 15:18 - Debugging specificity 16:40 - Modern selectors impact on specificity 24:00 - Cascade Layers introduction 24:38 - Cascade Layers basics 27:25 - Debugging layers 28:45 - Declaring layers before using them 31:28 - The impact of !important on layers 33:30 - Combining layers with β€œunlayered” styles 34:28 - Introduction to scope 36:04 - Scope basics 40:50 - Using scope with style elements inside an element #css -- Come hang out with other dev's

Published 2024-04-09 Β· Watch on YouTube β†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code