lower()
functionsince 0.10experimentalrequires runtimeThe 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,
--namereads a state;var(--name)works too.
Supported contexts
:on()actions:set(lower(event(value))).:when()andwhen()conditions::when(includes(--a, --b)).- Declarations, including
text::text: length(trim(--value)).
Limitations
Related
Experimental · syntax may change between minor versions