normalize-css-z 0.7.0

Normalization of a CSS z-index value to a 32-bit floating-point number (well, kind of...)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "custom")]
use normalize_css_z::normalizer::Normalizer;

fn main() {
    #[cfg(feature = "custom")]
    {
        let normalizer = Normalizer::new(None);
        let smallest = normalizer.calc(-2_147_483_647);
        let largest = normalizer.calc(2_147_483_647);

        eprintln!("shohei - smallest {smallest:?}");
        eprintln!("shohei - largest {largest:?}");
    }
}