Package-level declarations
Types
how a compound selector relates to the one before it
A complex selector of CSS: compounds from left to right, with the combinators between them, one fewer than the compounds. The last compound selects the node.
a compound selector: the simple selectors that one node matches, like button.primary:hover
a number with a unit of CSS, like 12px, 50%, 1.5em or 2fr; unit is lowercase, empty for numbers
a keyframe of an @keyframes rule: its offset from 0 to 1 and its declarations
the keywords that every CSS property takes
What media queries are evaluated against: the size of the viewport in pixels, its preferred colorScheme, dark or light, and the media type
The properties of a style system by their names, and its shorthands: a shorthand is expanded into the declarations of its longhands
How selectors see the nodes of a tree, like the elements of an SVG document or of a user interface: selectors match any tree through this view of it.
a simple selector: a type, an id, a class, an attribute or a pseudo-class
the specificity of a selector: its ids, its classes, attributes and pseudo-classes, and its types
a timing function of CSS, like those of transitions and animations, and the key splines of SMIL
The transitions of the properties of one element, of values of type V that interpolate interpolates: a change of a property with a TransitionTiming transitions from the value that is shown, also when another transition of the property runs, to the new value. Transitions of CSS.
How a property transitions: over duration seconds, after delay seconds, with timingFunction
Functions
the four sides of a box shorthand of CSS, like margin and padding: top, right, bottom and left; null when invalid
True when the media query list query matches environment: queries separated by commas, any of which matches, with not, only, a media type, and features joined by and: width, height, aspect-ratio with min- and max-, comparisons like (width >= 600px), orientation and prefers-color-scheme. Features that are not known do not match.
true when name is a named color of CSS
a CSS angle in degrees: deg, grad, rad, turn or a number of degrees; null when it is not an angle
The color of the CSS color text, in sRGB; null when it is not a color. Reads named colors, transparent, hexadecimal colors of 3, 4, 6 or 8 digits, rgb(), rgba(), hsl(), hsla() and the color functions of CSS Color 4 and 5: hwb(), lab(), lch(), oklab(), oklch(), color() with the predefined color spaces, color-mix() and light-dark(). Keywords that depend on where the color is used, like currentcolor, are not colors here.
the declarations of a block or a style attribute, with !important removed from their values
the number with a unit text is, null when it is not one
the @keyframes rules of css, by name, with their keyframes in the order of their offsets
The value of text in pixels: a length in absolute units, a number, or a calc() expression of them; null when it is not one
The rules of the style sheet css, in the order they are given, with the rules in @media rules, which have their media queries; other at-rules are left out
The complex selector text, like g:hover > .item:not(.off); null when it is not valid or not supported, like pseudo-elements and :has()
the selector list text, like a, b > c; null when a selector in it is not valid or not supported
A time of CSS or a clock value of SMIL, in seconds: 2s, 500ms, 1.5, 01:30, 00:01:30.5, 2min, 1h; null when it is not a time
text split at the commas that are not in parentheses, like the lists of CSS
text split at whitespace that is not in parentheses or quotes, like the values of shorthands
this as a CSS color, rgb() of its sRGB values; parseCssColor reads it back