Trevixal API
    Preparing search index...

    Function safeLineHeight

    • Line height accepts a bare multiplier (1.5) as well as a length, so it cannot go through safeLength. That helper rewrites a unitless number as px, which is exactly the wrong reading here. Unitless values pass through the general CSS sanitizer and are then range-checked; anything with a unit falls back to safeLength.

      Parameters

      • value: unknown

      Returns string | null