css_ast 0.0.31

CSS Abstract Syntax Trees with visitable nodes and style value types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(test)]
mod tests {
	use super::super::*;
	use crate::CssAtomSet;
	use css_parse::assert_parse;

	#[test]
	fn test_writes() {
		assert_parse!(CssAtomSet::ATOMS, ScrollPaddingTopStyleValue, "1px");
		assert_parse!(CssAtomSet::ATOMS, ScrollMarginTopStyleValue, "1px");
		assert_parse!(CssAtomSet::ATOMS, ScrollSnapAlignStyleValue, "none");
		assert_parse!(CssAtomSet::ATOMS, ScrollSnapAlignStyleValue, "start end");
		assert_parse!(CssAtomSet::ATOMS, ScrollSnapAlignStyleValue, "center center");
	}
}