There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

if-empty-trimmed

Syntax

if-empty-trimmed: ["]variable|element selector["];

This works in a similar way to the "if-empty" pseudo-selector, with the difference being that the content is trimmed either side before the condition is checked.

Whitespace remains intact in the variable/element itself. This is only a check that the trimmed contents equates to empty.

See if-empty for examples of use.