From 1dd26d685f82d61a1cb8b0ee8710f77b094b9e46 Mon Sep 17 00:00:00 2001 From: atomiks Date: Thu, 8 Mar 2018 23:26:08 +1000 Subject: [PATCH] Update prefix.md --- snippets/prefix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/prefix.md b/snippets/prefix.md index 1de9b283c..45e28a598 100644 --- a/snippets/prefix.md +++ b/snippets/prefix.md @@ -1,6 +1,6 @@ ### prefix -Automatically prefixes a property to the one supported by the browser. +Returns the prefixed version (if necessary) of a CSS property that the browser supports. Use an array of vendor prefix strings and loop through them, testing if `document.body` has one of them defined in its CSSStyleDeclaration object, otherwise return `null`. Use `String.charAt()`