The list of supported CSS functions is growing quite large, and it's very easy to miss a typo.

This rule checks each function name to make sure that it is a known CSS function. All vendor-prefixed functions are ignored because vendors may add in their own functions at any point in time.

Noncompliant Code Example

.mybox {
  color: rgb(255,0,51);
  color: hello(100); /* Noncompliant: 'hello' isn't a known function */
}

Compliant Solution

.mybox {
  color: rgb(255,0,51); /* Compliant: 'rgb' is a known function */
  color: -moz-linear-gradient(top, hsl(0, 80%, 70%), #bada55); /* Compliant: '-moz-linear-gradient' is a vendor function */
}

List of Known Functions

alpha annotation attr
basicimage blendtrans blur
brightness calc character-variant
chroma circle color-stop
compositor conic-gradient contrast
counter counters cross-fade
cubic-bezier domain drop-shadow
ease ease-in ease-in-out
ease-out element  #2 ellipse
emboss engrave expression
fit-content fliph flipv
format from glow
gray grayscale hsl
hsla hue-rotate icmfilter
image image-set inset
invert light linear
linear-gradient local mask-filter
matrix matrix3d max
min minmax motionblur
opacity ornaments perspective
polygon radial-gradient rect
redirect regexp repeating-conic-gradient
repeating-linear-gradient repeating-radial-gradient revealtrans
rgb rgba rotate
rotate3d rotatex rotatey
rotatez running saturate
scale scale3d scalex
scaley scalez sepia
shadow skew skewx
skewy snapinterval snaplist
step-end step-start steps
styleset stylistic supports
swash symbols to
toggle translate translate3d
translatex translatey translatez
url url-prefix var
wave xray