• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • Tutorials
    • API Docs
  • Community
    • Gallery
    • Blog »
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • YUI 2
    • YUI Compressor
    • YUI Doc »
    • YUI Builder
    • YUI PHP Loader
    • YUI Test
    • YUI Website
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • FAQ
  • Developer FAQ
  • Developer Guide
  • Module Setup

Tag Cloud

caridy form ericf greghinch table lsmith node jafl solmsted plugin model nzakas apipkin foxxtrot yql davglass widget liferay io satyam datatable async css animation event

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Modernizr (gallery-modernizr) on cdn

    Last Updated: 04/21/10
    + 2 -

    Pradhap Nirmal Natarajan

    YUI Contributor

    See 1 more by this user.

    Created: 04/21/10
    Last CDN Push: 05/19/10
    Build Tag: gallery-2010.05.19-19-08
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.1.0
    Free for use.

    This is a wrapper for Modernizr library that is used to detect support for many HTML5 & CSS3 features on a browser. More documentation here - http://www.modernizr.com/docs/ Please note that the module does not add the Modernizr object to the global namespace. Instead it will be local to the YUI instance.

    • Tags:
    • prathapnirmal
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    Code Sample

    <script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script>
    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2010.05.19-19-08'
    }).use('gallery-modernizr', function(Y) {
     
        if ( Y.Modernizr.canvas) {
            // canvas is supported, do something with it
        } else {
           // canvas not supported
        }
     
    });

    Forum Posts

    Subject Author Date
    Bug when used in Chrome Ivan Dramaliev 07/23/10
    Re: Bug when used in Chrome Paul Irish 07/23/10
    Re: Bug when used in Chrome Ivan Dramaliev 07/23/10
    Re: Bug when used in Chrome Ivan Dramaliev 07/23/10

    © 2006-2011 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info