MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / apply_auto_width

Function apply_auto_width

css-inline/tests/test_inlining.rs:1910–1916  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1908
1909#[test]
1910fn apply_auto_width() {
1911 // auto should be passed through
1912 let inliner = CSSInliner::options().apply_width_attributes(true).build();
1913 let html = r#"<html><head><style>img { width: auto; }</style></head><body><img></body></html>"#;
1914 let result = inliner.inline(html).unwrap();
1915 assert!(result.contains(r#"width="auto""#));
1916}
1917
1918#[test]
1919fn apply_unitless_width() {

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
inlineMethod · 0.45

Tested by

no test coverage detected