sauron::prelude::prelude

Function ex

Source
pub fn ex(v: impl Into<Value>) -> String
Expand description

Relative to the x-height of the current font (rarely used)

Example:

use sauron::html::units::*;

assert_eq!("10ex", ex(10));

MDN reference