docs.rodeo

MDN Web Docs mirror

CSS values and units

{{CSSRef}} 

Every CSS declaration consists of a property/value pair. The value can take various forms depending on the property, such as a single integer, keyword, function, or a combination of different items; some values have units, while others do not. Every property also accepts the CSS-wide values. The CSS values and units module defines the data types — values and units — that CSS properties accept. This module also defines the CSS value definition syntax, or formal grammar, used to define the set of valid values for every CSS property and function.

Reference

Properties

Functions

Additional functions, including calc-mix(), crossorigin(), first-valid(), if(), integrity(), progress(), random(), random-item(), referrerpolicy(), sibling-count(), sibling-index(), src(), type(), and toggle(), are defined in the specifications, but not yet implemented in browsers.

Data types

Units

Flex units (fr) and container units (cqb, cqh, cqi, cqmax, cqmin, cqw) are defined in the CSS grid layout and CSS conditional rules modules, respectively.

Unit categorizations

Key concepts

Guides

Specifications

{{Specifications}} 

See also

In this article

View on MDN