Converts a CsskitAtomSet representing a property group name to PropertyGroup.
(self)
| 43 | |
| 44 | /// Converts a CsskitAtomSet representing a property group name to PropertyGroup. |
| 45 | pub fn to_property_group(self) -> Option<PropertyGroup> { |
| 46 | match self { |
| 47 | Self::Align => Some(PropertyGroup::Align), |
| 48 | Self::Anchor | Self::AnchorPosition => Some(PropertyGroup::AnchorPosition), |
| 49 | Self::AnimationTriggers => Some(PropertyGroup::AnimationTriggers), |
| 50 | Self::Animation | Self::Animations => Some(PropertyGroup::Animations), |
| 51 | Self::Background | Self::Backgrounds => Some(PropertyGroup::Backgrounds), |
| 52 | Self::Border | Self::Borders => Some(PropertyGroup::Borders), |
| 53 | Self::Box => Some(PropertyGroup::Box), |
| 54 | Self::Break => Some(PropertyGroup::Break), |
| 55 | Self::Cascade => Some(PropertyGroup::Cascade), |
| 56 | Self::Color => Some(PropertyGroup::Color), |
| 57 | Self::ColorAdjust => Some(PropertyGroup::ColorAdjust), |
| 58 | Self::ColorHdr => Some(PropertyGroup::ColorHdr), |
| 59 | Self::Conditional => Some(PropertyGroup::Conditional), |
| 60 | Self::Contain => Some(PropertyGroup::Contain), |
| 61 | Self::Content => Some(PropertyGroup::Content), |
| 62 | Self::CounterStyle => Some(PropertyGroup::CounterStyle), |
| 63 | Self::Display => Some(PropertyGroup::Display), |
| 64 | Self::Exclusions => Some(PropertyGroup::Exclusions), |
| 65 | Self::Flex | Self::Flexbox => Some(PropertyGroup::Flexbox), |
| 66 | Self::Font | Self::Fonts => Some(PropertyGroup::Fonts), |
| 67 | Self::Forms => Some(PropertyGroup::Forms), |
| 68 | Self::Gap | Self::Gaps => Some(PropertyGroup::Gaps), |
| 69 | Self::Gcpm => Some(PropertyGroup::Gcpm), |
| 70 | Self::Grid => Some(PropertyGroup::Grid), |
| 71 | Self::Image | Self::Images => Some(PropertyGroup::Images), |
| 72 | Self::ImageAnimation => Some(PropertyGroup::ImageAnimation), |
| 73 | Self::Inline => Some(PropertyGroup::Inline), |
| 74 | Self::LineGrid => Some(PropertyGroup::LineGrid), |
| 75 | Self::LinkParams => Some(PropertyGroup::LinkParams), |
| 76 | Self::List | Self::Lists => Some(PropertyGroup::Lists), |
| 77 | Self::Logical => Some(PropertyGroup::Logical), |
| 78 | Self::Mask | Self::Masking => Some(PropertyGroup::Masking), |
| 79 | Self::Multicol => Some(PropertyGroup::Multicol), |
| 80 | Self::Nav => Some(PropertyGroup::Nav), |
| 81 | Self::Overflow => Some(PropertyGroup::Overflow), |
| 82 | Self::Overscroll => Some(PropertyGroup::Overscroll), |
| 83 | Self::Page => Some(PropertyGroup::Page), |
| 84 | Self::PageFloats => Some(PropertyGroup::PageFloats), |
| 85 | Self::Position => Some(PropertyGroup::Position), |
| 86 | Self::Regions => Some(PropertyGroup::Regions), |
| 87 | Self::Rhythm => Some(PropertyGroup::Rhythm), |
| 88 | Self::RoundDisplay => Some(PropertyGroup::RoundDisplay), |
| 89 | Self::Ruby => Some(PropertyGroup::Ruby), |
| 90 | Self::ScrollAnchoring => Some(PropertyGroup::ScrollAnchoring), |
| 91 | Self::ScrollSnap => Some(PropertyGroup::ScrollSnap), |
| 92 | Self::Scrollbar | Self::Scrollbars => Some(PropertyGroup::Scrollbars), |
| 93 | Self::Shaders => Some(PropertyGroup::Shaders), |
| 94 | Self::Shape | Self::Shapes => Some(PropertyGroup::Shapes), |
| 95 | Self::SizeAdjust => Some(PropertyGroup::SizeAdjust), |
| 96 | Self::Sizing => Some(PropertyGroup::Sizing), |
| 97 | Self::Speech => Some(PropertyGroup::Speech), |
| 98 | Self::Table | Self::Tables => Some(PropertyGroup::Tables), |
| 99 | Self::Text => Some(PropertyGroup::Text), |
| 100 | Self::TextDecor | Self::TextDecoration => Some(PropertyGroup::TextDecor), |
| 101 | Self::Transform | Self::Transforms => Some(PropertyGroup::Transforms), |
| 102 | Self::Transition | Self::Transitions => Some(PropertyGroup::Transitions), |