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

Function remove_inlined_selectors_basic

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

Source from the content-addressed store, hash-verified

1479
1480#[test]
1481fn remove_inlined_selectors_basic() {
1482 let inliner = CSSInliner::options().remove_inlined_selectors(true).build();
1483 let html =
1484 r#"<html><head><style>h1 { color: blue; }</style></head><body><h1>Test</h1></body></html>"#;
1485 let result = inliner.inline(html).unwrap();
1486 assert_eq!(
1487 result,
1488 r#"<html><head></head><body><h1 style="color: blue;">Test</h1></body></html>"#
1489 );
1490}
1491
1492#[test]
1493fn remove_inlined_selectors_partial() {

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
inlineMethod · 0.45

Tested by

no test coverage detected