Hasty Treat - Old Browsers, Fallbacks and Polyfills - Part 2

Syntax

In this Hasty Treat, Scott and Wes continue a three-part series about old browsers, fallbacks and polyfills. In part two, they talk specifically about CSS Grid, Flexbox, new features and fallbacks, and how to use them.

VueSchool.io — Sponsor

Check out VueSchool.io’s new subscription plans. Get access to their entire catalog with more than 160 lessons, including The Vue.js Masterclass, for one low monthly fee. New content and courses are added regularly. Visit VueSchool.io/syntax and get your first month for only $5.

Show Notes

3:08 - CSS Grid and Flexbox

12:38 - CSS Variables

  • Double define
  • Just like Grid, unknown def will be ignored and fallback to CSS
  • CSS Houdini

17:00 - Fallback Code

  • @supports
  • Display block then display grid
  • Feature Testing
  • Detect the browser as a last resort
Tweet us your tasty treats!

Audio Player

-
--:--
--:--