resolveValues

Resolve the specified values in the context of the provided element. For example, a value of '1em' is evaluated according to the computed 'font-size' of the element and a value 'calc(1px + 2px)' will be resolved to '3px'.

Official doc

Note: this function uses an input class, and constructing this class manually may lead to incompatibilities if the class's constructor arguments change in the future. For maximum compatibility, it is advised to use the overload of this function that directly takes the mandatory parameters as arguments, and the optional ones from a configuration lambda.


inline suspend fun resolveValues(values: List<String>, nodeId: NodeId, optionalArgs: ResolveValuesRequest.Builder.() -> Unit = {}): ResolveValuesResponse

Resolve the specified values in the context of the provided element. For example, a value of '1em' is evaluated according to the computed 'font-size' of the element and a value 'calc(1px + 2px)' will be resolved to '3px'.

Official doc

Parameters

values

Substitution functions (var()/env()/attr()) and cascade-dependent keywords (revert/revert-layer) do not work.

nodeId

Id of the node in whose context the expression is evaluated