Why Validate Cascading Style Sheets?
Documentation exists which states the consequences when style sheets contain errors. It’s been there since 1998. And, it was revised 2006. It’s this. Cascading Style Sheets, level 2, CSS2 Specification, 4 CSS2 syntax and basic data types, 4.1.8 Declarations and properties which states, The syntax of values is specified separately for each property, but in any case, values are built from identifiers, strings, numbers, lengths, percentages, URIs, colors, angles, times, and frequencies. A user agent must ignore a declaration with an invalid property name or an invalid value. Every CSS2.1 property has its own syntactic and semantic restrictions on the values it accepts. Illegal example(s): For example, assume a CSS2.1 parser encounters this style sheet: h1 { color: red; font-style: 12pt } /* Invalid value: 12pt */ p { color: blue; font-vendor: any; /* Invalid prop.: font-vendor */ font-variant: small-caps } em em { font-style: normal } The second declaration on the first line has an invali