Lea Verou 2009-02-10

Check whether a CSS property is supported

Read Original

This technical article explains how to programmatically check if a CSS property is supported by the current browser using JavaScript. It demonstrates using the 'in' operator with a DOM element's style object for reliable feature detection, avoiding browser-specific hacks. The guide includes a reusable function and important notes about using JavaScript-style property names.

Check whether a CSS property is supported

kommentarer

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet