Check whether the browser supports RGBA (and other CSS3 values)
A guide to detecting RGBA and other CSS3 value support in browsers using JavaScript feature detection techniques.
Lea Verou is a web standards expert, developer, and designer with a PhD from MIT in Human-Computer Interaction. She has worked as Product Lead at Font Awesome, helped shape the web as a member of the W3C Technical Architecture Group, and has been part of the CSS Working Group since 2012. Her open-source tools like PrismJS and Color.js are used by millions of developers worldwide. Lea is also the author of a bestselling CSS book, a frequent conference speaker, and an advocate for making technology simpler, more usable, and open for everyone.
211 articles from this blog
A guide to detecting RGBA and other CSS3 value support in browsers using JavaScript feature detection techniques.
Comparing JavaScript type-checking methods, showing that elegant, short code isn't always the fastest, with performance benchmarks.
Learn how to use javascript: URIs in the address bar for quick debugging in browsers without a console, like IE6 or Opera.
Essential browser bugs and workarounds developers need to know when coding JavaScript without libraries.
Argues for mandatory, silent browser updates to improve web development and security, eliminating legacy browser testing.
A guide to implementing cross-browser RGBA color backgrounds with CSS and a PHP fallback script for older browsers.
A guide to detecting the current browser's CSS vendor prefix using JavaScript, addressing cross-browser compatibility issues.
A technical guide to using CSS3 border-radius for rounded corners, covering browser-specific implementations and quirks.
Extending JavaScript's Math.round, Math.ceil, and Math.floor functions to support precision parameters for decimal rounding.
A bookmarklet that detects which JavaScript libraries and their versions are used on any webpage you visit.
Learn how to detect browser support for specific CSS properties using JavaScript feature detection instead of browser sniffing.