CSS Property Validator
DataValidate CSS property names against the official W3C/MDN list. Identifies property category and browser support tier. Free, in-browser, no data stored.
What is a CSS Property?
A CSS Property Validator checks whether a CSS property name is a recognised, standard property defined in W3C CSS specifications. When you type background-color, display, or grid-template-columns, the tool confirms that name exists in the authoritative property list, identifies its functional category (Layout, Typography, Flexbox, and so on), and notes whether it is a vendor-prefixed or custom property.
This tool solves a specific everyday problem: CSS property names are long, hyphenated, and easy to misspell. A typo like backgroun-color or dispaly produces no browser error โ the declaration is silently ignored. Browsers do not raise exceptions for unknown property names; they simply skip the rule. That silent failure makes name errors harder to catch than syntax errors in most other languages.
The validator covers three distinct cases:
- Standard properties โ checked against the W3C/MDN property list and assigned a functional category
- Vendor-prefixed properties โ names starting with
-webkit-,-moz-,-ms-, or-o-are detected and noted separately; use the unprefixed standard form where possible - Custom properties โ names starting with
--(such as--brand-blue) are valid by CSS specification and are recognised as custom properties; no further name checking applies
Validation runs entirely in your browser. No input is transmitted to any server. For related checks, see the HTML Validator and the URL Validator.
How to use this CSS Property calculator
- Open the CSS Property Validator on this page. The CSS Property Name input field is pre-filled with
background-coloras a working example. - Clear the field and type or paste the property name you want to check โ enter the name exactly as it appears in a CSS rule, in lowercase with hyphens (for example,
font-size, notfontSize). - The Result badge updates instantly as you type. No button press is required.
- If the badge shows Valid, read the category label below it to confirm the property is in the functional area you expected.
- If the badge shows Invalid, check for common issues: a typo, a camelCase name instead of hyphenated, a missing or extra hyphen, or a vendor prefix on a property that has a standard name.
- To check another property, clear the field and enter the next name. You can also share the current result by copying the URL โ the property name is encoded in the page URL and will pre-fill the field for anyone you send the link to.
Formula & Methodology
The validator applies three checks in sequence: 1. Custom property detection If the input starts with--, it is a CSS custom property. Custom properties are valid by CSS specification for any name following the--prefix โ no further lookup is performed, and the result is returned as valid with a custom property note. 2. Vendor prefix detection If the input starts with-webkit-,-moz-,-ms-, or-o-, the prefix is recorded. The prefixed name is noted as vendor-specific rather than standard. The tool does not look it up in the standard property list. 3. Known-property lookup For all other inputs, the name is normalised to lowercase and looked up in the bundled property list derived from the W3C CSS specification and MDN documentation. If a match is found, the associated functional category is returned and the result is valid. If no match is found, the result is invalid. Valid example โbackground-colorbackground-colordoes not start with--or a vendor prefix. Lookup finds it in the known-property list under the Background & Colour category. Result: Valid โ Background & Colour. Invalid example โbackgroun-color(typo)backgroun-colordoes not start with--or a vendor prefix. Lookup finds no match in the known-property list โ the name is missing thed. Result: Invalid โ not a recognised CSS property. The property list is bundled at build time and does not make network requests. Validation is synchronous and runs in under one millisecond for any input length. For checking the structural integrity of a complete HTML document rather than a CSS property name, use the HTML Validator.
Frequently Asked Questions