Experimental Proposals

These features are experimental and not Baseline in September 2026:

A custom function and an inline if() (Chromium only)HTMLLive
<style>
  @function --tint(--color <color>, --alpha <number>: 0.25) returns <color> {
    result: oklch(from var(--color) l c h / var(--alpha));
  }
  .chip { --brand: #6a1b9a; font: 18px system-ui; padding: 10px 16px; margin: 8px;
          display: inline-block; border-radius: 20px; color: var(--brand);
          background: --tint(var(--brand));
          border: if(style(--level: high): 3px solid; else: 1px dashed) var(--brand); }
</style>
<span class="chip">Default level</span> <span class="chip" style="--level: high">Level high</span>
Browser output of Listing 4.33
Browser output of 33

Because these declarations contain var(), other browsers accept them while parsing and drop them at computed-value time, which also cancels earlier fallbacks for that property. Use them only for non-essential decoration until support broadens.