MCPcopy Create free account
hub / github.com/csskit/csskit / test_stylesheet_metadata_custom_properties

Function test_stylesheet_metadata_custom_properties

crates/css_ast/src/metadata.rs:547–557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

545
546 #[test]
547 fn test_stylesheet_metadata_custom_properties() {
548 let css = "body { --custom: value; }";
549 let bump = bumpalo::Bump::new();
550 let lexer = Lexer::new(&CssAtomSet::ATOMS, css);
551 let mut parser = Parser::new(&bump, css, lexer);
552 let stylesheet = parser.parse::<StyleSheet>().unwrap();
553
554 let metadata = stylesheet.metadata();
555
556 assert!(metadata.has_custom_properties());
557 }
558
559 #[test]
560 fn test_stylesheet_metadata_nested_media() {

Callers

nothing calls this directly

Calls 1

metadataMethod · 0.45

Tested by

no test coverage detected