PK |^ @ inspectionDescriptions/CssBrowserCompatibilityForProperties.html
Reports a CSS property that is not supported by the specified browsers. Based on the MDN Compatibility Data. PK &56Z Z : inspectionDescriptions/CssConvertColorToHexInspection.html Reports anrgb()
, hsl()
, or other color function.
Suggests replacing a color function with an equivalent hexadecimal notation.
Example:
rgb(12, 15, 255)
After the quick-fix is applied:
#0c0fff
.
PK &, : inspectionDescriptions/CssConvertColorToRgbInspection.html
Reports an hsl()
or hwb()
color function or a hexadecimal color notation.
Suggests replacing such color value with an equivalent rgb()
or rgba()
color function.
Example:
#0c0fff
After the quick-fix is applied:
rgb(12, 15, 255)
.
PK wg , inspectionDescriptions/CssInvalidAtRule.html
Reports an unknown CSS at-rule.
PK UZn n 1 inspectionDescriptions/CssInvalidCharsetRule.html
Reports a misplaced @charset
at-rule or an incorrect charset value.
PK 7q . inspectionDescriptions/CssInvalidFunction.html
Reports an unknown CSS function or an incorrect function parameter.
PK bŭ 6 inspectionDescriptions/CssInvalidHtmlTagReference.html
Reports a CSS type selector that matches an unknown HTML element.
PK 9c{@ @ , inspectionDescriptions/CssInvalidImport.html
Reports a misplaced @import
statement.
According to the specification,
@import
rules must precede all other types of rules, except @charset
rules.
Example:
input /* comma has probably been forgotten */
.button {
margin: 1px;
}
PK +V V / inspectionDescriptions/CssMissingSemicolon.html
Reports a missing semicolon at the end of a declaration.
PK }3z , inspectionDescriptions/CssNegativeValue.html
Reports a negative value of a CSS property that is not expected to be less than zero, for example, object width or height.
PK KU 0 inspectionDescriptions/CssNoGenericFontName.html
Verifies that the font-family
property
contains a generic font family name as a fallback alternative.
Generic font family names are: serif
, sans-serif
, cursive
, fantasy
,
and monospace
.
Example:
width: 3.14px
PK Z}5 5 4 inspectionDescriptions/CssOverwrittenProperties.html
Reports a duplicated CSS property within a ruleset. Respects shorthand properties.
Example:
.foo {
margin-bottom: 1px;
margin-bottom: 1px; /* duplicates margin-bottom */
margin: 0; /* overrides margin-bottom */
}
PK fC , inspectionDescriptions/CssRedundantUnit.html
Reports a measure unit of a zero value where units are not required by the specification.
Example:
width: 0px
PK 9 inspectionDescriptions/CssReplaceWithShorthandSafely.html
Reports a set of longhand properties. Suggests replacing a complete set of longhand CSS properties with an equivalent shorthand form.
For example, 4 properties: padding-top
, padding-right
, padding-bottom
, and
padding-left
can be safely replaced with a single padding
property.
Note that this inspection doesn't show up if the set of longhand properties is incomplete
(e.g. only 3 padding-xxx
properties in a ruleset)
because switching to a shorthand may change the result.
For such cases consider the 'Properties may probably be replaced with a shorthand'
inspection.
For example, 2 properties: outline-color
and outline-style
may be replaced with a single outline
.
Such replacement is not 100% equivalent because shorthands reset all omitted sub-values to their initial states.
In this example, switching to the outline
shorthand means that outline-width
is also set to its initial value,
which is medium
.
This inspection doesn't handle full sets of longhand properties (when switching to shorthand is 100% safe). For such cases see the 'Properties may be safely replaced with a shorthand' inspection instead.
PK . inspectionDescriptions/CssUnknownProperty.html Reports an unknown CSS property or a property used in a wrong context.Add the unknown property to the 'Custom CSS properties' list to skip validation.
PK n7 , inspectionDescriptions/CssUnknownTarget.html Reports an unresolved file reference, for example, an incorrect path in an@import
statement.
PK pU U <