0 checked
Options
Usage

formvalidation

View examples

  • iframe[sandbox] Attribute
    Description

    Test for sandbox attribute in iframes.

    Usage

    sandbox

    View examples

    known bug
    • False-positive on Firefox <29
    More Details
  • iframe[seamless] Attribute
    Description

    Test for seamless attribute in iframes.

    Usage

    seamless

    View examples

    More Details
  • iframe[srcdoc] Attribute
    Description

    Test for srcdoc attribute in iframes.

    Usage

    srcdoc

    View examples

    More Details
  • Animated PNG
    Description

    Test for animated png support.

    Usage

    apng

    View examples

    More Details
  • Image crossOrigin
    Description

    Detects support for the crossOrigin attribute on images, which allow for cross domain images inside of a canvas without tainting it

    Usage

    imgcrossorigin

    View examples

    More Details
  • JPEG 2000
    By: @eric_wvgg
    Description

    Test for JPEG 2000 support

    Usage

    jpeg2000

    View examples

    More Details
  • JPEG XR (extended range)
    Description

    Test for JPEG XR support

    Usage

    jpegxr

    View examples

    More Details
  • sizes attribute
    By: Mat Marquis
    Description

    Test for the sizes attribute on images

    Usage

    sizes

    View examples

    More Details
  • srcset attribute
    Description

    Test for the srcset attribute of images

    Usage

    srcset

    View examples

    More Details
  • Webp Alpha
    By: Krister Kari, Rich Bradshaw, Ryan Seddon and Paul Irish
    Description

    Tests for transparent webp support.

    Usage

    webpalpha

    View examples

    More Details
  • Webp Animation
    By: Krister Kari, Rich Bradshaw, Ryan Seddon and Paul Irish
    Description

    Tests for animated webp support.

    Usage

    webpanimation

    View examples

    More Details
  • Webp Lossless
    By: @amandeep, Rich Bradshaw, Ryan Seddon and Paul Irish
    Description

    Tests for non-alpha lossless webp support.

    Usage

    webplosslesswebp-lossless

    View examples

    More Details
  • Webp
    By: Krister Kari, @amandeep, Rich Bradshaw, Ryan Seddon and Paul Irish
    Description

    Tests for lossy, non-alpha webp support.

    Tests for all forms of webp support (lossless, lossy, alpha, and animated)..

    Modernizr.webp // Basic support (lossy) Modernizr.webp.lossless // Lossless Modernizr.webp.alpha // Alpha (both lossy and lossless) Modernizr.webp.animation // Animated WebP

    Usage

    webp

    View examples

    More Details
  • input formaction
    Description

    Detect support for the formaction attribute on form inputs

    Usage

    inputformaction

    View examples

    Polyfills
    More Details
  • input formenctype
    Description

    Detect support for the formenctype attribute on form inputs, which overrides the form enctype attribute

    Usage

    inputformenctype

    View examples

    Polyfills
    More Details
  • input formmethod
    Description

    Detect support for the formmethod attribute on form inputs

    Usage

    inputformmethod

    View examples

    Polyfills
    More Details
  • input formtarget
    Description

    Detect support for the formtarget attribute on form inputs, which overrides the form target attribute

    Usage

    inputformtarget

    View examples

    Polyfills
    More Details
  • Hover Media Query
    Description

    Detect support for Hover based media queries

    Usage

    hovermq

    View examples

    More Details
  • Pointer Media Query
    Description

    Detect support for Pointer based media queries

    Usage

    pointermq

    View examples

    More Details
  • Beacon API
    By: Cătălin Mariș
    Description

    Detects support for an API that allows for asynchronous transfer of small HTTP data from the client to a server.

    Usage

    beacon

    View examples

    More Details
  • Low Bandwidth Connection
    Description

    Tests for determining low-bandwidth via navigator.connection

    There are two iterations of the navigator.connection interface.

    The first is present in Android 2.2+ and only in the Browser (not WebView)

    • http://docs.phonegap.com/en/1.2.0/phonegap_connection_connection.md.html#connection.type
    • http://davidbcalhoun.com/2010/using-navigator-connection-android

    The second is specced at http://dev.w3.org/2009/dap/netinfo/ and perhaps landing in WebKit

    • https://bugs.webkit.org/show_bug.cgi?id=73528

    Unknown devices are assumed as fast

    For more rigorous network testing, consider boomerang.js: https://github.com/bluesmoon/boomerang/

    Usage

    lowbandwidth

    View examples

  • Server Sent Events
    Description

    Tests for server sent events aka eventsource.

    Usage

    eventsource

    View examples

    More Details
  • Fetch API
    Description

    Detects support for the fetch API, a modern replacement for XMLHttpRequest.

    Usage

    fetch

    View examples

    Polyfills
    More Details
  • XHR responseType='arraybuffer'
    Description

    Tests for XMLHttpRequest xhr.responseType='arraybuffer'.

    Usage

    xhrresponsetypearraybuffer

    View examples

    More Details
  • XHR responseType='blob'
    Description

    Tests for XMLHttpRequest xhr.responseType='blob'.

    Usage

    xhrresponsetypeblob

    View examples

    More Details
  • XHR responseType='document'
    Description

    Tests for XMLHttpRequest xhr.responseType='document'.

    Usage

    xhrresponsetypedocument

    View examples

    More Details
  • XHR responseType='json'
    Description

    Tests for XMLHttpRequest xhr.responseType='json'.

    Usage

    xhrresponsetypejson

    View examples

    More Details
  • XHR responseType='text'
    Description

    Tests for XMLHttpRequest xhr.responseType='text'.

    Usage

    xhrresponsetypetext

    View examples

    More Details
  • XHR responseType
    Description

    Tests for XMLHttpRequest xhr.responseType.

    Usage

    xhrresponsetype

    View examples

    More Details
  • XML HTTP Request Level 2 XHR2
    Description

    Tests for XHR2.

    Usage

    xhr2

    View examples

    More Details
  • script[async]
    By: Theodoor van Donge
    Description

    Detects support for the async attribute on the <script> element.

    Usage

    scriptasync

    View examples

  • script[defer]
    By: Theodoor van Donge
    Description

    Detects support for the defer attribute on the <script> element.

    Usage

    scriptdefer

    View examples

    warning
    • Browser implementation of the `defer` attribute vary: https://stackoverflow.com/questions/3952009/defer-attribute-chrome#answer-3982619
    known bug
    • False positive in Opera 12
  • Speech Recognition API
    By: Cătălin Mariș
    Usage

    speechrecognition

    View examples

    More Details
  • Speech Synthesis API
    By: Cătălin Mariș
    Usage

    speechsynthesis

    View examples

    More Details
  • Local Storage
    Usage

    localstorage

    View examples

    Polyfills
  • Session Storage
    Usage

    sessionstorage

    View examples

    Polyfills
  • Web SQL Database
    Usage

    websqldatabase

    View examples

  • style[scoped]
    By: Cătălin Mariș
    Description

    Support for the scoped attribute of the <style> element.

    Usage

    stylescoped

    View examples

    Polyfills
    More Details
  • SVG as an <img> tag source
    By: Chris Coyier
    Usage

    svgasimg

    View examples

    More Details
  • SVG clip paths
    Description

    Detects support for clip paths in SVG (only, not on HTML content).

    See this discussion regarding applying SVG clip paths to HTML content.

    Usage

    svgclippaths

    View examples

    More Details
  • SVG filters
    By: Erik Dahlstrom
    Usage

    svgfilters

    View examples

    More Details
  • SVG foreignObject
    Description

    Detects support for foreignObject tag in SVG.

    Usage

    svgforeignobject

    View examples

    More Details
  • Inline SVG
    Description

    Detects support for inline SVG in HTML (not within XHTML).

    Usage

    inlinesvg

    View examples

    Polyfills
    known bug
    • False negative on some Chromia browsers.
    More Details
  • SVG SMIL animation
    Usage

    smil

    View examples

    More Details
  • textarea maxlength
    Description

    Detect support for the maxlength attribute of a textarea element

    Usage

    textareamaxlength

    View examples

    Polyfills
    More Details
  • Blob URLs
    By: Ron Waldon (@jokeyrhyme)
    Description

    Detects support for creating Blob URLs

    Usage

    bloburls

    View examples

    More Details
  • Data URI
    Description

    Detects support for data URIs. Provides a subproperty to report support for data URIs over 32kb in size:

    Modernizr.datauri           // true
    Modernizr.datauri.over32kb  // false in IE8
    
    Usage

    datauri

    View examples

    warning
    • Support in Internet Explorer 8 is limited to images and linked resources like CSS files, not HTML files
    More Details
  • URL parser
    By: Ron Waldon (@jokeyrhyme)
    Description

    Check if browser implements the URL constructor for parsing URLs.

    Usage

    urlparser

    View examples

    Polyfills
    More Details
  • URLSearchParams API
    By: Cătălin Mariș
    Description

    Detects support for an API that provides utility methods for working with the query string of a URL.

    Usage

    urlsearchparams

    View examples

    More Details
  • Video Autoplay
    Description

    Checks for support of the autoplay attribute of the video element.

    Usage

    videoautoplay

    View examples

    warning
    • This test is very large – only include it if you absolutely need it
    known bug
    • crashes with an alert on iOS7 when added to homescreen
  • Video crossOrigin
    By: Florian Mailliet
    Description

    Detects support for the crossOrigin attribute on video tag

    Usage

    videocrossorigin

    View examples

    More Details
  • Video Loop Attribute
    Usage

    videoloop

    View examples

  • Video Preload Attribute
    Usage

    videopreload

    View examples

  • WebGL Extensions
    By: Ilmari Heikkinen
    Description

    Detects support for OpenGL extensions in WebGL. It's true if the WebGL extensions API is supported, then exposes the supported extensions as subproperties, e.g.:

    if (Modernizr.webglextensions) {
      // WebGL extensions API supported
    }
    if ('OES_vertex_array_object' in Modernizr.webglextensions) {
      // Vertex Array Objects extension supported
    }
    
    Usage

    webglextensions

    View examples

    More Details
  • RTC Data Channel
    Description

    Detect for the RTCDataChannel API that allows for transfer data directly from one peer to another

    Usage

    datachannel

    View examples

    More Details
  • getUserMedia
    By: Eric Bidelman and Masataka Yakura
    Description

    Detects support for the new Promise-based getUserMedia API.

    Usage

    getusermedia

    View examples

    More Details
  • RTC Peer Connection
    By: Ankur Oberoi
    Usage

    peerconnection

    View examples

    More Details
  • Binary WebSockets
    Usage

    websocketsbinary

    View examples

  • Base 64 encoding/decoding
    By: Christian Ulbrich
    Description

    Detects support for WindowBase64 API (window.atob && window.btoa).

    Usage

    atobbtoa

    View examples

    Polyfills
    More Details
  • Framed window
    Description

    Tests if page is iframed.

    Usage

    framed

    View examples

  • matchMedia
    By: Alberto Elias
    Description

    Detects support for matchMedia.

    Usage

    matchmedia

    View examples

    Polyfills
    More Details
  • Workers from Blob URIs
    By: Jussi Kalliokoski
    Description

    Detects support for creating Web Workers from Blob URIs.

    Usage

    blobworkers

    View examples

    known bug
    • This test may output garbage to console.
    More Details
  • Workers from Data URIs
    By: Jussi Kalliokoski
    Description

    Detects support for creating Web Workers from Data URIs.

    Usage

    dataworkers

    View examples

    known bug
    • This test may output garbage to console.
    More Details
  • Shared Workers
    Description

    Detects support for the SharedWorker API from the Web Workers spec.

    Usage

    sharedworkers

    View examples

    More Details
  • Transferables Objects
    Description

    Detects whether web workers can use transferables objects.

    Usage

    transferables

    View examples

    More Details
  • Web Workers
    Description

    Detects support for the basic Worker API from the Web Workers spec. Web Workers provide a simple means for web content to run scripts in background threads.

    Usage

    webworkers

    View examples

    Polyfills
    More Details

  • Made with love by Faruk, Paul, Alex, Ryan, Patrick, Stu, and Richard.
    Subscribe to the feed, follow on twitter, or contact us. Donations are cool, too.
    Check out the code on github