Favorites

CSS <frequency-percentage> Data Type

<frequency-percentage>
CSS Data TypeThis data type is not supported by modern browsers.
Updated 21st November 2026

The <frequency-percentage> data type is a value that can be either a <frequency> or a <percentage>.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

Description

The <frequency-percentage> CSS data type represents a value that can be either a <frequency> or a <percentage>. It exists for properties where a rate can be given either as an absolute amount, in hertz (Hz) or kilohertz (kHz), or as a proportion of some reference frequency. For example, a pitch could be written as 440Hz or as 120% of a default pitch.

Like <length-percentage> and <angle-percentage>, this combined type mainly simplifies how property syntax is written in the specifications. When a percentage is used, the property that accepts it defines what the percentage is relative to. Both kinds of value can also be mixed inside a math function, for example calc(50% + 20Hz), where the percentage resolves to a frequency before the calculation is done.

In practice, <frequency-percentage> was intended for speech and aural style properties, such as voice pitch, which are not implemented in current web browsers. No property that browsers support today accepts this type, so it is not something you can use in everyday stylesheets. It is documented here for completeness and because it appears in the CSS Values and Units specification.

Example syntax (not supported by browsers):

/* From the CSS Speech specification: voice-pitch */
.narrator {
  voice-pitch: 220Hz;       /* <frequency> */
}

.excited {
  voice-pitch: 130%;        /* <percentage> */
}

.mixed {
  voice-pitch: calc(50% + 20Hz);
}

If you need to work with frequencies on the web today, the Web Audio API in JavaScript is the practical option, with CSS used only for the visual presentation.

Syntax

<frequency-percentage> = <frequency> | <percentage>

Values

Example

<div class="demo">
<h1>CSS &lt;frequency-percentage&gt; values</h1>
<div class="voice low">
<span>Low voice <code>220Hz</code></span>
<div class="bar"></div>
</div>
<div class="voice base">
<span>Default pitch <code>100%</code></span>
<div class="bar"></div>
</div>
<div class="voice high">
<span>Excited voice <code>130%</code></span>
<div class="bar"></div>
</div>
<p class="note">This data type is not supported by any browser property yet.</p>
</div>
/* Illustrates  values as labelled cards.
   No browser property currently accepts this type, so the values
   are shown as text and the bars are drawn with ordinary widths. */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071023 0%, #021025 100%);
  color: #cbd5e1;
}

.demo {
  width: 100%;
  max-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

h1 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: #e6eef8;
}

.voice {
  margin-bottom: 0.9rem;
}

.voice span {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.voice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: #a5b4fc;
}

.bar {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

.low .bar { width: 35%; }
.base .bar { width: 50%; }
.high .bar { width: 65%; }

.note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 1rem 0 0;
}
Open in editor

Browser Support

The following information will show you the current browser support for the CSS frequency-percentage data type. Hover over a browser icon to see the version that first introduced support for this CSS data type.

This data type is not supported by modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.