css_ast 0.0.21

CSS Abstract Syntax Trees with visitable nodes and style value types.
Documentation
#[cfg(test)]
mod tests {
	use super::super::*;
	use crate::CssAtomSet;
	use css_parse::assert_parse;

	#[test]
	fn size_test() {
		assert_eq!(std::mem::size_of::<FieldSizingStyleValue>(), 16);
		assert_eq!(std::mem::size_of::<SliderOrientationStyleValue>(), 16);
		assert_eq!(std::mem::size_of::<InputSecurityStyleValue>(), 16);
	}

	#[test]
	fn test_writes() {
		assert_parse!(CssAtomSet::ATOMS, FieldSizingStyleValue, "content");
		assert_parse!(CssAtomSet::ATOMS, SliderOrientationStyleValue, "bottom-to-top");
		assert_parse!(CssAtomSet::ATOMS, InputSecurityStyleValue, "none");
	}
}