SlideShare a Scribd company logo
Progressive Enhancement in
the age of HTML5 and
CSS3
using Modernizr
                                        Paul Irish
                                        Molecular
                  NC jQuery & JavaScript Camp ’10
HTML5 & CSS3 Coolness™
HTML5 & CSS3 Coolness™
Rounded corners         2D Transformations
@font-face fonts        CSS Gradients
Canvas                  SVG
rgba(), hsla() colors   Geolocation
border-image            CSS Columns
box-shadow              HTML5 Forms
HTML5 Audio & Video     Web Workers
CSS Animations          Offline Web Apps
CSS Transitions         …and so on and so on.
ishtml5readyyet.com
ishtml5readyyet.com



                  U P !
  HU T wrong.
S    y   ou ’re
Modernizr
Making use of tomorrow’s technologies, today!
Modernizr - Detecting HTML5 and CSS3 support
Feature Detection
     Just Detect It™
Modernizr - Detecting HTML5 and CSS3 support
Native                    No Native
Implementation            Implementation
. box {                   .no-borderradius .box {
   // use border-radius      // maybe less padding?
}                         }

                          if (Modernizr.borderradius == false){
                              // call up DD_roundies, etc.
                          }
Modernizr - Detecting HTML5 and CSS3 support
OM
    G it
onl     ’s
   y7
      k!
We got you covered, b.
Rounded corners         2D Transformations
@font-face fonts        CSS Gradients
Canvas                  SVG
rgba(), hsla() colors   Geolocation
border-image            CSS Columns
box-shadow              HTML5 Forms
HTML5 Audio & Video     Web Workers
CSS Animations          Offline Web Apps
CSS Transitions         …
We got you covered, b.
Rounded corners    2D                webGL
                   Transformations
@font-face fonts                     SMIL
                   CSS Gradients
Canvas                               hashchange
                   SVG               event
rgba(), hsla()
colors             Geolocation       localStorage
border-image       CSS Columns       sessionStorage
box-shadow         HTML5 Forms       postMessage
HTML5 Audio &      Web Workers       html5 drag ‘n
Video                                drop
                   Offline Web Apps
CSS Animations                       web sql
                   …and so on and    database
CSS Transitions    so on.
Modernizr
 http://modernizr.com
      @modernizr


Me:
 http://paulirish.com
      @paul_irish

                        Yah, it’s open source. Fork it, baby.

More Related Content

PDF
Canvas & Canvas - Presentation to NYC.js
PDF
Short intro to JQuery and Modernizr
PDF
Hello Web Fonts
PDF
Progressive Advancement in Web8
KEY
It's a Mod World - A Practical Guide to Rocking Modernizr
PDF
20111129 modernizr
KEY
Ease into HTML5 and CSS3
PDF
Progressive Advancement, by way of progressive enhancement
Canvas & Canvas - Presentation to NYC.js
Short intro to JQuery and Modernizr
Hello Web Fonts
Progressive Advancement in Web8
It's a Mod World - A Practical Guide to Rocking Modernizr
20111129 modernizr
Ease into HTML5 and CSS3
Progressive Advancement, by way of progressive enhancement

Similar to Modernizr - Detecting HTML5 and CSS3 support (20)

KEY
HTML5, CSS3, and other fancy buzzwords
PDF
Implementing Awesome: An HTML5/CSS3 Workshop
KEY
Angels versus demons: balancing shiny and inclusive
PDF
HTML5 and CSS3: does now really mean now?
DOCX
gbar.jpgglogo.jpgmaa.jpgmaah5txt.css New Pe.docx
PDF
Modern Web Development
PDF
It's Business Time: The Graceful Degradation of CSS3
PDF
Echo HTML5
PDF
CSS3: The Future is Now at Drupal Design Camp Boston
PDF
A Period of Transition
PPTX
Pearls and Must-Have Tools for the Modern Web / .NET Developer
PPTX
Toronto HTML5 User Group Meet Up #2 – Application Development with HTML 5
PPT
Web development today
PDF
Css3 transitions and animations + graceful degradation with jQuery
PDF
CSS3: Ripe and Ready
PDF
CSS3: The Future is Now at DrupalCon San Francisco
PPTX
HTML5 and CSS3 Techniques You Can Use Today
PDF
HTML5 for the Flash Developer
PDF
HTML5 for Web Designers
PDF
Change by HTML5
HTML5, CSS3, and other fancy buzzwords
Implementing Awesome: An HTML5/CSS3 Workshop
Angels versus demons: balancing shiny and inclusive
HTML5 and CSS3: does now really mean now?
gbar.jpgglogo.jpgmaa.jpgmaah5txt.css New Pe.docx
Modern Web Development
It's Business Time: The Graceful Degradation of CSS3
Echo HTML5
CSS3: The Future is Now at Drupal Design Camp Boston
A Period of Transition
Pearls and Must-Have Tools for the Modern Web / .NET Developer
Toronto HTML5 User Group Meet Up #2 – Application Development with HTML 5
Web development today
Css3 transitions and animations + graceful degradation with jQuery
CSS3: Ripe and Ready
CSS3: The Future is Now at DrupalCon San Francisco
HTML5 and CSS3 Techniques You Can Use Today
HTML5 for the Flash Developer
HTML5 for Web Designers
Change by HTML5
Ad

More from Paul Irish (7)

PDF
An Overview of HTML5 Storage
PDF
webfonts & @font-face :: in brief
PDF
Squeezing The Best Out Of Webfonts
KEY
Employing Custom Fonts
KEY
jQuery Anti-Patterns for Performance & Compression
PDF
Practical Design Solutions from Japan
KEY
Rich Typography Options For The Web - or - Why sIFR is Dead in 2009
An Overview of HTML5 Storage
webfonts & @font-face :: in brief
Squeezing The Best Out Of Webfonts
Employing Custom Fonts
jQuery Anti-Patterns for Performance & Compression
Practical Design Solutions from Japan
Rich Typography Options For The Web - or - Why sIFR is Dead in 2009
Ad

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Understanding_Digital_Forensics_Presentation.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Building Integrated photovoltaic BIPV_UPV.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Modernizr - Detecting HTML5 and CSS3 support

  • 1. Progressive Enhancement in the age of HTML5 and CSS3 using Modernizr Paul Irish Molecular NC jQuery & JavaScript Camp ’10
  • 2. HTML5 & CSS3 Coolness™
  • 3. HTML5 & CSS3 Coolness™ Rounded corners 2D Transformations @font-face fonts CSS Gradients Canvas SVG rgba(), hsla() colors Geolocation border-image CSS Columns box-shadow HTML5 Forms HTML5 Audio & Video Web Workers CSS Animations Offline Web Apps CSS Transitions …and so on and so on.
  • 5. ishtml5readyyet.com U P ! HU T wrong. S y ou ’re
  • 6. Modernizr Making use of tomorrow’s technologies, today!
  • 8. Feature Detection Just Detect It™
  • 10. Native No Native Implementation Implementation . box { .no-borderradius .box { // use border-radius // maybe less padding? } } if (Modernizr.borderradius == false){ // call up DD_roundies, etc. }
  • 12. OM G it onl ’s y7 k!
  • 13. We got you covered, b. Rounded corners 2D Transformations @font-face fonts CSS Gradients Canvas SVG rgba(), hsla() colors Geolocation border-image CSS Columns box-shadow HTML5 Forms HTML5 Audio & Video Web Workers CSS Animations Offline Web Apps CSS Transitions …
  • 14. We got you covered, b. Rounded corners 2D webGL Transformations @font-face fonts SMIL CSS Gradients Canvas hashchange SVG event rgba(), hsla() colors Geolocation localStorage border-image CSS Columns sessionStorage box-shadow HTML5 Forms postMessage HTML5 Audio & Web Workers html5 drag ‘n Video drop Offline Web Apps CSS Animations web sql …and so on and database CSS Transitions so on.
  • 15. Modernizr http://modernizr.com @modernizr Me: http://paulirish.com @paul_irish Yah, it’s open source. Fork it, baby.

Editor's Notes

  • #3: awesome shit! js solutions for many of these, but in 95% of cases, the result with the native css approach has a better result - responsive, faster, less code. transforms. transitions. @font-face
  • #4: omg is html5ready yet ?? UGH. the challenge is: how do you use these features across browsers, progressively enhancing where possible
  • #5: omg is html5ready yet ?? UGH. the challenge is: how do you use these features across browsers, progressively enhancing where possible
  • #6: in other words: super easy to have multiple levels of support in site, one for each degree of sophistication that’s how i ended up w/modernizr allows you to start using html5+css3 coolness today, and have full control over what your html,css and js do in browsers that don’t have features Which brings me to the most important part of this presentation:
  • #7: FEATURE DETECTION aka object detection is good sniffing is bad all browsers. future-proof
  • #8: FEATURE DETECTION aka object detection is good sniffing is bad all browsers. future-proof
  • #12: awesome shit! js solutions for many of these, but in 95% of cases, the result with the native css approach has a better result - responsive, faster, less code.