Сообщения об ошибках Style Checker


Property redefined. The shorthand property "x" already defines "x".
Shorthand properties are used to group related values under a single property. For example, the
font property is composed of font-style, font-variant, font-weight, font-size, line-height and font-family. So, a rule that includes the font shorthand property shouldn't also include font-family, since in effect this is defining font-family twice. Another common mistake is to redefine background-color by using the shorthand property background.

Top Property "x" does not exist in this definition
The identified property is not valid for the style definition. For example, the CSS1 definition will raise this error if you use the cursor property, since cursor wasn't introduced until CSS2.

"x" is not a valid value for "x"
The value given for the specified property is not valid. Common mistakes that lead to this error are:

Top When using the color property, a background or background-color property should also be defined
The background and color properties should be specified together to avoid conflicts with user style sheets.

A generic family name should be included in your font list
Your document may be viewed by many different systems, so there's no guarantee that every visitor will have a particular font. Generic fonts, on the other hand, are fonts that should be understood by every CSS-capable browser. Always add a generic font (such as sans-serif, serif or monospace) to the end of any font-family value. Note that some style definitions (such as WebTV Plus) don't support the full set of generic font names, so you may get this error even when a generic name is used.

The font property should include a size value.
The shorthand font property requires a font size value, but none is given.

Top "x" is defined multiple times in the same rule
The same property is used more than once within a single rule.

Value for "x" is empty
A property is defined with no value. Example: { font-size: ; }.

"x" is not a valid length unit
A length value is using an invalid unit. This may occur if you misspelled the unit name (example: "pz" instead of "px") or if a particular style definition doesn't support the specified unit (example: Internet Explorer 3 doesn't support the "em" unit).

Top System colors are not supported by this definition
System colors aren't real colors, but are instead colors on the user's system. For example, the system color ButtonText refers to the color used for push buttons. System colors were introduced in CSS2 and aren't supported by all browsers, so this error will be generated by any style definition that doesn't understand them.

Only the standard 16 named colors are supported by this definition
Style definitions such as CSS1 only understand the standard 16 named colors (aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow), so color values such as AntiqueWhite or Coral aren't supported.

RGB colors are not supported by this definition
You may get this error when the validating against the Internet Explorer 3 style definition, since IE3 doesn't support RGB color values.

Top Multiple values are defined for "x", but this property does not allow sub-values
A property which only accepts a single value has more than one value given.

Too many values are defined for "x"
The specified property only accepts a certain number of values, and you have more than that number of values defined. For example, margin accepts four values, so you'll get this error if you supply five values.

The number of comments opened (/*) does not match the number closed (*/).
You'll see this error if you neglect to close a comment. The style checker will quit if it runs into this problem, since it normally skips comments.

Top The number of open braces does not match the number of close braces
This error will occur if you neglect to close a rule, or if you accidentally type an extra { or } somewhere in your style sheet.

Selector "x" redeclared - rule will not be checked
A selector is used more than once within the same style sheet. You can turn this warning off on the Style Checker page in TopStyle's options.

Local URL not found: "x"
A local URL could not be resolved. Make sure that the URL value points to a valid file.

Top The invalid character "x" is used in selector "x"
Selectors must begin with an alphabetic character, and can't contain spaces or other special characters.

This selector contains an underscore, which will cause most browsers to ignore it.
Some browsers, such as Internet Explorer 5, support the use of underscores in selector names. However, most do not, and will ignore the entire rule.

Empty declaration block for "x"
You have an empty declaration block (ex: BODY { } ).

Top Font names that contain spaces should be enclosed in quotes.
Although most browsers don't enforce this rule, it's a good idea to place quotes around font names that contain spaces.

The font property requires a font-size or font-family value.
A common mistake when using the
font property is to neglect to include a font-size or font-family value. These values are required in order for the font property to be considered valid.

There should not be a space between the number and the length unit in this value.
A common mistake is to use a space between a number and its unit (ex: 12  pt instead of 12pt.)

Top Pseudo-class "x" isn't supported by this style definition.
Many
pseudo-classes aren't supported by every browser.

"x" selectors aren't supported by this style definition
Many
selector types aren't supported by every browser, resulting in this error. In particular, CSS2 selectors (such as attribute selectors) are poorly supported by current browsers.


Related topics: Style Checker Error Levels