glory-html 0.7.1

Shared semantic to HTML mapping for Glory rendering hosts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use glory_render::style::{FlexWrap, Style};
#[test]
fn flex_wrap_serializes_independently_including_explicit_nowrap_reset() {
    assert_eq!(
        glory_html::style(&Style::new().flex_wrap(FlexWrap::Wrap)),
        "flex-wrap:wrap;"
    );
    assert_eq!(
        glory_html::style(&Style::new().flex_wrap(FlexWrap::NoWrap)),
        "flex-wrap:nowrap;"
    );
}