The <frequency-percentage>
CSS data type represents a value that can be either a <frequency>
or a <percentage>
.
Syntax
Refer to the documentation for <frequency>
and <percentage>
for details of the individual syntaxes allowed by this type.
Use in calc()
Where a <frequency-percentage>
is specified as an allowable type, this means that the percentage resolves to a frequency and therefore can be used in a calc()
expression.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Values and Units Module Level 4 The definition of '<frequency-percentage>' in that specification. |
Editor's Draft | |
CSS Values and Units Module Level 3 The definition of '<frequency-percentage>' in that specification. |
Candidate Recommendation | Defines <frequency-percentage> . Adds calc() |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
<frequency-percentage> | Chrome No support No | Edge No support No | Firefox No support No | IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
Legend
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.