Derive Macro Default

Source
#[derive(Default)]
{
    // Attributes available to this derive:
    #[default]
}
Expand description

Implements a Rust’s std trait - Default.

§Used on

  • properties

§Usage

It attemps to follow the CSSWG specification defaulting.
However due to possible differences between browsers, the initial values provided by MDN is used on this crate.