.dcss-scale-threshold

Sorts a value into groups cut at the thresholds you set, and gives that group’s item.

Example

Result
Markup
<link rel="stylesheet" href="dcss.css">
<link rel="stylesheet" href="families/array.css">

<figure class="dcss-scale-threshold" style="--value: 0.5; --domain-0: 0.25; --domain-1: 0.75; --ranges: 3; --range-0: 'low'; --range-1: 'mid'; --range-2: 'high'">
  <output></output>
</figure>

Browser support

BrowserSupport
ChromeYes
SafariYes
FirefoxWhole numbers only

See also