Documents v0.10.0 · previews run the real runtime · experimental features are marked exp

lower()

functionsince 0.10experimentalrequires runtime

The text in lower case, with the Unicode default rules: the same result for every user, no locale rules.

On this page · 8 sections+

Syntax

lower(<text>)

registry syntax: lower(text)

Parameters

textstring or keywordrequired
Numbers, booleans and datetimes are an error.

Return value

A string.

Example

lower.cssreactive
.s { --q: state(""); }.s input:on(input) { --q: set(lower(event(value))); }
state()Function · hover any red tokenMakes each matching element the owner of an independent state with an initial value.Reference →

Behavior

  • In the arguments, --name reads a state; var(--name) works too.

Supported contexts

  • :on() actions: set(lower(event(value))).
  • :when() and when() conditions: :when(includes(--a, --b)).
  • Declarations, including text:: text: length(trim(--value)).

Limitations

    Experimental · syntax may change between minor versions