files/en-us/web/css/guides/values_and_units/index.md
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.
[!NOTE] This page introduces a CSS module. To find an exhaustive list of all values, types, and functions defined by CSS specifications, see the values reference page.
The CSS values and units module also introduces the calc-mix(), crossorigin(), first-valid(), integrity(), random(), random-item(), referrerpolicy(), src(), type(), and toggle() functions. Currently, no browsers support these features.
<attr-name><attr-type>e, pi, infinity, {{glossary("NaN")}})<calc-size-basis><rounding-strategy> (down, up, to-zero)<syntax><url-modifier>The CSS values and units module also introduces the {{cssxref("frequency")}} and {{cssxref("frequency-percentage")}} data types. Currently, no browsers support these features.
% (percentage)capchcmdegdpcmdpidppxdvbdvhdvidvmaxdvmindvwemexgradHzicinkHzlhlvblvhlvilvmaxlvminlvwmmmspcptpxQradrcaprchremrexricrlhssvbsvhsvisvmaxsvminsvwturnvbvhvivmaxvminvwxFlex units (fr) and container units (cqb, cqh, cqi, cqmax, cqmin, cqw) are defined in the CSS grid layout and CSS conditional rules modules, respectively.
cm, in, mm, pc, pt, px, Q)deg, grad, rad, turn)vb , vh, vi , vmax, vmin, vw)dvb, dvh, dvi, dvmax, dvmin, dvw)Hz, kHz)lvb, lvh, lvi, lvmax, lvmin, lvw)cap, ch, em, ex, ic, lh)cm, in, mm, pc, pt, Q)cap, ch, em, ex, ic, lh, rem, rlh, vb, vh, vi, vmax, vmin, vw)dpcm, dpi , dppx, x)rcap, rch, rem, rex, ric, rlh)svb, svh, svi, svmax, svmin, svw)ms, s)dvh, dvw, lvh, lvw, svh, svw, vb , vh, vi , vmax, vmin, vw)px)CSS cascading and inheritance module
CSS grid layout module
fr)CSS conditional rules module
cqb, cqh, cqi, cqmax, cqmin, cqw)CSS colors module
color-mix()CSS images module
{{Specifications}}